/*--------------------------------------------------------------
# AUTH.CSS - Estilos para Login e Registro - Tikito Tattoo
--------------------------------------------------------------*/

/* Container Principal do Card de Autenticação */
.auth-card {
    background: #0A0E14;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(218, 165, 32, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ícone do Topo */
.auth-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 
        0 10px 30px rgba(218, 165, 32, 0.4),
        0 0 0 4px rgba(218, 165, 32, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.auth-icon-wrapper i {
    font-size: 2rem;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Títulos */
.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #DAA520;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(218, 165, 32, 0.3);
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    color: #9CA3AF;
    font-size: 0.9375rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Labels dos Formulários */
.auth-card .form-label {
    color: #E5E7EB;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-card .form-label i {
    color: #DAA520;
    font-size: 0.875rem;
}

/* Inputs dos Formulários */
.auth-card .form-control {
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 12px;
    color: #F9FAFB;
    padding: 14px 18px;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.auth-card .form-control::placeholder {
    color: #6B7280;
}

.auth-card .form-control:focus {
    background: rgba(31, 41, 55, 0.8);
    border-color: #DAA520;
    box-shadow: 
        0 0 0 4px rgba(218, 165, 32, 0.15),
        0 8px 16px rgba(218, 165, 32, 0.2);
    outline: none;
    color: #FFFFFF;
}

.auth-card .form-control:hover:not(:focus) {
    border-color: rgba(218, 165, 32, 0.5);
}

/* Wrapper do Campo de Senha */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 1rem;
}

.password-toggle:hover {
    color: #DAA520;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Checkbox "Lembrar-me" */
.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-card .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(218, 165, 32, 0.5);
    background: rgba(31, 41, 55, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-card .form-check-input:checked {
    background-color: #DAA520;
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.auth-card .form-check-input:focus {
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
}

.auth-card .form-check-label {
    color: #E5E7EB;
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Link "Esqueci minha senha" */
.forgot-password {
    color: #DAA520;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #DAA520;
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: #FFD700;
}

.forgot-password:hover::after {
    width: 100%;
}

/* Botões */
.auth-card .btn-primary {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(218, 165, 32, 0.4),
        0 0 0 0 rgba(218, 165, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(218, 165, 32, 0.5),
        0 0 0 4px rgba(218, 165, 32, 0.2);
}

.auth-card .btn-primary:hover::before {
    left: 100%;
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

.auth-card .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer do Card */
.auth-footer {
    text-align: center;
    padding-top: 28px;
    border-top: 2px solid rgba(218, 165, 32, 0.2);
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.auth-footer p {
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.auth-footer a {
    color: #DAA520;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #DAA520;
    transition: width 0.3s ease;
}

.auth-footer a:hover {
    color: #FFD700;
}

.auth-footer a:hover::after {
    width: 100%;
}

.copyright-small {
    color: #6B7280;
    font-size: 0.75rem;
    margin: 0;
}

/* Alerts de Sucesso e Erro */
.auth-card .alert {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.875rem;
    border: none;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.auth-card .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #EF4444;
    color: #FCA5A5;
}

.auth-card .alert-danger i {
    color: #EF4444;
}

.auth-card .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-left: 4px solid #10B981;
    color: #6EE7B7;
}

.auth-card .alert-success i {
    color: #10B981;
}

/* Animações de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .auth-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .auth-icon-wrapper i {
        font-size: 1.75rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .auth-card .form-control {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .auth-card .btn-primary {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .auth-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .auth-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}