/* Variables simplificadas - CULTORES */
:root {
    --primary: #2C5530;       /* Verde oscuro cultural */
    --primary-light: #4A7C59; /* Verde medio */
    --secondary: #D4A017;     /* Dorado tierra */
    --accent: #8B4513;        /* Marrón terracota */
    --white: #ffffff;
    --light: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --dark: #212529;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header con Color */
.header-banner {
    background: var(--primary);
    padding: 1.2rem 0;
    position: relative;
    z-index: 100;
}

.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-section {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.title-section {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.title-section h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Layout Principal */
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 84px);
}

/* Carrusel Lateral */
.carousel-sidebar {
    flex: 1.2;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    z-index: 2;
}

.carousel-caption h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-caption p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Controles del carrusel */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 2;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    gap: 0.6rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.4);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Login Sidebar */
.login-sidebar {
    flex: 0.8;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-height: 100%;
}

.login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.user-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 400;
}

/* Alert */
.alert-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #721c24;
    font-size: 0.95rem;
}

.alert-box i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    width: 20px;
    font-size: 1.1rem;
}

/* Input Container */
.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark);
    box-sizing: border-box;
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.input-container input::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

/* Password Input Container */
.password-input-container input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(44, 85, 48, 0.05);
}

.password-toggle:active {
    background: rgba(44, 85, 48, 0.1);
}

.input-container.focused input {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

/* Form Options */
.form-options {
    margin: 0.5rem 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray);
    user-select: none;
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox input:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}

/* Login Button */
.login-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    font-family: inherit;
}

.login-button:hover:not(:disabled) {
    background: #234026;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.2);
}

.login-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Login Footer */
.login-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.help-section {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray);
}

.help-section i {
    color: var(--primary);
    margin-right: 0.6rem;
    font-size: 1rem;
}

.contact-info {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    padding-left: 1.6rem;
}

.copyright {
    font-size: 0.85rem;
    color: #adb5bd;
    text-align: center;
}

.version {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 1200px) {
    .banner-inner {
        max-width: 1000px;
    }
    
    .title-section h1 {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .main-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .carousel-sidebar {
        flex: none;
        height: 350px;
    }
    
    .login-sidebar {
        flex: none;
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
    
    .carousel-caption {
        bottom: 80px;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-controls {
        bottom: 25px;
    }
}

@media (max-width: 768px) {
    .header-banner {
        padding: 1rem 0;
    }
    
    .banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 0 1.5rem;
    }
    
    .logo-section {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .title-section {
        min-width: auto;
    }
    
    .title-section h1 {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .carousel-sidebar {
        height: 280px;
    }
    
    .login-sidebar {
        padding: 2rem 1.5rem;
    }
    
    .login-card {
        max-width: 380px;
    }
    
    .password-toggle {
        padding: 6px;
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .carousel-sidebar {
        height: 240px;
    }
    
    .carousel-caption {
        bottom: 70px;
        padding: 0 1.5rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.95rem;
    }
    
    .carousel-controls {
        bottom: 20px;
        gap: 1.5rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .login-header h2 {
        font-size: 1.6rem;
    }
    
    .user-icon {
        font-size: 3rem;
    }
    
    .password-input-container input {
        padding-right: 45px;
    }
    
    .password-toggle {
        right: 10px;
        padding: 5px;
        font-size: 1rem;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }
    
    .carousel-sidebar {
        height: 220px;
    }
    
    .login-sidebar {
        padding: 1.5rem 1rem;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .input-container input {
        padding: 0.875rem;
        padding-right: 42px;
    }
    
    .login-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .password-toggle {
        right: 8px;
        padding: 4px;
        width: 32px;
        height: 32px;
    }
}
.alert-box.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-box.warning i {
    color: #f39c12;
}