/* ============================================
   login.css - Giriş Sayfası Stilleri
   ============================================ */

.login-container {
    max-width: 480px;
    margin: 30px auto;
    padding: 0 15px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: white;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.auth-subtitle {
    color: #888;
    margin: 0;
    font-size: 14px;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
    animation: slideDown 0.5s ease;
}

.alert-error {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BAŞARILI KAYIT BİLDİRİMİ */
.alert-success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.alert-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.alert-content i {
    font-size: 30px;
    flex-shrink: 0;
    margin-top: 3px;
}

.alert-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.alert-content p {
    margin: 0;
    font-size: 13px;
    color: #388e3c;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

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

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #667eea;
    width: 16px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
}

.password-toggle:hover {
    color: #667eea;
}

.btn-auth {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    color: #888;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 13px;
    color: #999 !important;
}

/* ============================================
   TOAST BİLDİRİMİ
   ============================================ */

.register-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    gap: 15px;
    align-items: center;
    max-width: 420px;
    border-left: 5px solid #4caf50;
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-icon-wrapper {
    flex-shrink: 0;
}

.toast-icon-wrapper i {
    font-size: 40px;
    color: #4caf50;
    animation: bounceIn 0.6s ease;
}

.toast-content-wrapper strong {
    display: block;
    font-size: 15px;
    color: #2e7d32;
    margin-bottom: 5px;
}

.toast-content-wrapper p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.toast-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.toast-close-btn:hover {
    color: #333;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

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

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
    .login-container {
        margin: 15px auto;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .register-success-toast {
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .toast-icon-wrapper i {
        font-size: 30px;
    }
}