/* Authentication Sayfaları - Minimal Overrides */
/* Ana stiller style.css ve inline olarak HTML içinde tanımlanmıştır. */

.auth-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Password Strength Bar Animation */
.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--strength, 0);
    background: var(--strength-color, #e0e0e0);
    transition: all 0.3s;
}

/* Alert Overrides — Bootstrap'siz */
.alert {
    padding: 1rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;          /* başlık + alt satırlar düzgün hizalansın */
    gap: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.alert .alert-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 2px;
}

.alert .alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.alert .alert-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.alert .alert-message {
    font-size: 0.95rem;
}

.alert .alert-hint {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-top: 0.15rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Kalıcı (persistent) varyant — disposable / rate-limit gibi abuse hataları için.
   Kullanıcı tarafından kapatılana kadar görünür kalır. Görsel olarak daha
   "alarm" gibi: kalın sol border + güçlü gölge + dikkat çekici giriş animasyonu. */
.alert-persistent {
    padding: 1.1rem 2.6rem 1.1rem 1.2rem;   /* sağda kapat butonu için yer */
    border-width: 1px;
    border-left-width: 5px;
    box-shadow: 0 10px 28px rgba(198, 40, 40, 0.18);
    animation: alert-attention 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.alert-persistent.alert-error {
    background: #fff5f5;
    color: #991b1b;
    border-color: #fca5a5;
    border-left-color: #b91c1c;
}

.alert-persistent .alert-icon {
    color: #b91c1c;
    font-size: 1.3rem;
}

.alert-close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.55;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity 0.15s, background 0.15s;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

@keyframes alert-attention {
    0%   { transform: translateY(-6px) scale(0.98); opacity: 0; }
    50%  { transform: translateY(0) scale(1.01);   opacity: 1; }
    70%  { transform: translateX(-3px); }
    85%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .alert-persistent { animation: none; }
}