* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #1AC0C4;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    overflow: hidden;
}

/* Sección visual izquierda */
.login-visual {
    width: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 rem;
    overflow: hidden;
}

.logo-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Sección formulario derecha */
.login-form-section {
    width: 50%;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-header-logo {
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

.flash-messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-info {
    background-color: #e7f3ff;
    color: #0066cc;
    border: 1px solid #b3d9ff;
}

.login-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1rem;
    z-index: 1;
}

.input-icon-right {
    position: absolute;
    right: 1rem;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-icon-right:hover {
    color: #1AC0C4;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #1AC0C4;
    box-shadow: 0 0 0 3px rgba(26, 192, 196, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #1AC0C4 0%, #47368C 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(26, 192, 196, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 192, 196, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
    }
    
    .login-visual {
        width: 100%;
        padding: 2rem;
        min-height: 200px;
    }
    
    .login-form-section {
        width: 100%;
        padding: 2rem;
    }
    
    .login-header-logo {
        max-width: 200px;
    }
    
    .login-logo {
        max-height: 150px;
    }
}
