/**
 * Login Sayfası Stilleri
 * Soft & Modern Design - Diğer sayfalarla uyumlu
 */

:root {
    --primary: #6366f1;
    --primary-light: #eef2ff;
    --primary-hover: #4f46e5;
    --text-color: #334155;
    --text-muted: #64748b;
    --background: #f8fafc;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.08);
}

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

/* Font Awesome Icons Override */
.fas, .far, .fab, .fal, .fad, [class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}
.fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    /* Soft gradient matching site theme */
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 30%, #e0e7ff 60%, #ddd6fe 100%);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   BACKGROUND SHAPES & PARTICLES
   ============================================================ */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Soft floating shapes */
.particle {
    position: absolute;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.06);
    border-radius: 50%;
    animation: float 25s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ============================================================
   LOGIN CONTAINER
   ============================================================ */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow), 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   LOGIN HEADER
   ============================================================ */
.login-header {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #ddd6fe 100%);
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.login-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.15));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05) rotate(3deg);
}

.login-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   LOGIN BODY
   ============================================================ */
.login-body {
    padding: 1.75rem 2rem 2rem;
    background: transparent;
}

/* ============================================================
   ALERT STYLES
   ============================================================ */
.alert {
    animation: shake 0.5s ease-in-out;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #991B1B;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert i { margin-right: 0.75rem; font-size: 1rem; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
    transition: transform 0.15s ease;
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-label i { color: var(--primary); opacity: 0.7; font-size: 0.8rem; }

.form-control {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control:hover {
    border-color: #c7d2fe;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* ============================================================
   PASSWORD TOGGLE
   ============================================================ */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94A3B8;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.password-toggle:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* ============================================================
   CHECKBOX
   ============================================================ */
.form-check {
    margin: 1rem 0 1.25rem;
    display: flex;
    align-items: center;
    padding-left: 1.7rem;
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0;
    margin-left: -1.7rem;
    cursor: pointer;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

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

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-check-label {
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.d-grid { display: grid; }

.btn-login {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border: none;
    border-radius: 12px;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

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

/* Loading State */
.btn-login.loading { opacity: 0.7; pointer-events: none; }
.btn-login.loading .btn-text { display: none; }
.btn-login.loading .btn-spinner { display: inline-flex; align-items: center; gap: 8px; }
.btn-spinner { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.login-footer {
    padding: 1.25rem;
    background: rgba(248, 250, 252, 0.5);
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.login-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.login-footer .fas {
    color: var(--primary);
    opacity: 0.6;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 576px) {
    .login-container { padding: 15px; }
    .login-header { padding: 2rem 1.5rem 1.25rem; }
    .login-body { padding: 1.5rem; }
    .login-title { font-size: 1.25rem; }
}

/* ReCaptcha Center */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
