/* ==========================================================================
   BARBERPLANNER - Design System (Dark + Gold Luxury Theme)
   ========================================================================== */

:root {
    /* Paleta de Cores Escuras (Dark Obsidian & Charcoal) */
    --bg-dark: #0A0A0C;
    --bg-card: rgba(18, 18, 24, 0.78);
    --bg-input: rgba(12, 12, 16, 0.85);
    --bg-input-hover: rgba(25, 25, 32, 0.9);
    
    /* Dourado Metálico & Destaques (Gold Palette) */
    --gold-primary: #D4AF37;
    --gold-light: #F5E6AD;
    --gold-bright: #F7D070;
    --gold-dark: #A8841D;
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --gold-gradient-hover: linear-gradient(135deg, #D4AF37 0%, #FFF8D6 25%, #C59B27 50%, #FFF4B0 75%, #C28C22 100%);
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-glow-strong: rgba(212, 175, 55, 0.45);
    
    /* Bordas & Divisores */
    --border-subtle: rgba(212, 175, 55, 0.18);
    --border-active: rgba(245, 230, 173, 0.6);
    
    /* Tipografia & Textos */
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --text-gold: #E6C265;
    
    /* Efeitos */
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Efeitos de Fundo (Ambient Glows & Pattern)
   ========================================================================== */

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.glow-top {
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(168, 132, 29, 0.04) 60%, transparent 80%);
}

.glow-bottom {
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
        radial-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   Layout Principal do Login (Ajustado para Enquadramento Sem Scroll)
   ========================================================================== */

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: var(--glass-shadow);
    position: relative;
    transition: var(--transition-smooth);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.7;
}

/* ==========================================================================
   Cabeçalho da Marca & Logo
   ========================================================================== */

.card-header {
    text-align: center;
    margin-bottom: 12px;
}

.logo-container {
    position: relative;
    width: 190px;
    height: 110px;
    margin: 0 auto 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.2));
    transition: transform 0.4s ease;
}

.brand-logo:hover {
    transform: scale(1.04);
}

.logo-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--gold-glow-strong) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.85); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.85; }
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.divider-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.divider-icon {
    color: var(--gold-primary);
    font-size: 11px;
    opacity: 0.7;
}

/* ==========================================================================
   Formulário de Entrada
   ========================================================================== */

.form-title-group {
    text-align: center;
    margin-bottom: 16px;
}

.form-title-group h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.form-title-group p {
    font-size: 12px;
    color: var(--text-secondary);
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--gold-primary);
    font-size: 15px;
    opacity: 0.75;
    transition: var(--transition-smooth);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:hover {
    background-color: var(--bg-input-hover);
    border-color: rgba(212, 175, 55, 0.35);
}

.input-wrapper input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 16px var(--gold-glow);
    background-color: rgba(15, 15, 20, 0.95);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    opacity: 1;
    color: var(--gold-bright);
    transform: scale(1.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Opções Auxiliares (Checkbox & Esqueceu Senha)
   ========================================================================== */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 16px;
    height: 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--gold-primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background: var(--gold-gradient);
    border-color: var(--gold-bright);
}

.checkmark::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0A0A0C;
    font-size: 9px;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.forgot-password-link {
    font-size: 12px;
    color: var(--text-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.forgot-password-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 8px var(--gold-glow);
    text-decoration: underline;
}

/* ==========================================================================
   Botão de Login
   ========================================================================== */

.btn-login {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--gold-gradient);
    color: #0A0A0C;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--gold-glow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-login:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow-strong);
}

.btn-login:hover::before {
    left: 100%;
}

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

.btn-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Rodapé do Card & Copyright
   ========================================================================== */

.card-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.security-badge i {
    color: var(--gold-primary);
    font-size: 11px;
}

.copyright {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Responsividade (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .logo-container {
        width: 190px;
        height: 120px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
