/* ========================================
   LOGIN PAGE - CLÍNICA DANYLLA PEREIRA
   ======================================== */

:root {
    /* Paleta de Cores - Psicologia */
    --primary-color: #6B8E9E;        /* Azul acinzentado suave */
    --secondary-color: #A8DADC;      /* Azul claro */
    --accent-color: #457B9D;         /* Azul médio */
    --success-color: #7CB99F;        /* Verde água */
    --text-dark: #1D3557;            /* Azul escuro */
    --text-light: #F1FAEE;           /* Branco suave */
    --background: #F8F9FA;           /* Cinza muito claro */
    --white: #FFFFFF;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.login-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   LADO ESQUERDO - BRANDING
   ======================================== */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.branding-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 500px;
    text-align: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s infinite;
}

.logo-circle i {
    font-size: 3.5rem;
    color: var(--text-light);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.clinic-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.clinic-name .highlight {
    font-weight: 700;
    display: block;
    color: var(--text-light);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 50px;
    font-weight: 300;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 2rem;
    opacity: 0.9;
}

.feature-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   LADO DIREITO - FORMULÁRIO
   ======================================== */

.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.clinic-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-fallback {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-fallback i {
    font-size: 2.5rem;
    color: var(--white);
}

/* Títulos */
.login-title {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Alerts Customizados */
.custom-alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
}

.alert-info {
    background: #eef;
    color: #33c;
}

/* Formulário */
.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 5px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(107, 142, 158, 0.1);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle i {
    font-size: 1.2rem;
}

/* Checkbox */
.form-check {
    margin-bottom: 30px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
}

/* Botão de Login */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-login i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-login:hover i {
    transform: translateX(5px);
}

/* Footer do Login */
.login-footer {
    margin-top: 30px;
    text-align: center;
}

.help-text {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.help-text i {
    color: var(--primary-color);
}

/* Rodapé da Página */
.page-footer {
    margin-top: 30px;
    text-align: center;
}

.page-footer p {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 992px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 1;
    }
    
    .login-container {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    }
    
    .login-box {
        background: var(--white);
        border-radius: 20px;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 576px) {
    .login-right {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .clinic-logo {
        max-width: 150px;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: fadeIn 0.6s ease-out;
}

/* Animação do Logo */
.clinic-logo, .logo-fallback {
    animation: fadeIn 0.8s ease-out;
}