/* ========== CSS Reset ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== Custom Properties (Light Theme) ========== */
:root {
    --primary: #e30613;
    --primary-dark: #b8050f;
    --primary-light: #ff2d3a;

    /* Arka plan ve Kart renkleri aydınlatıldı */
    --bg-light: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-border: rgba(0, 0, 0, 0.08);

    /* Metin renkleri koyulaştırıldı */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    /* Input renkleri aydınlatıldı */
    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.15);
    --input-focus-border: var(--primary);

    /* Gölgeler yumuşatıldı */
    --shadow-glow: 0 0 60px rgba(227, 6, 19, 0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Body / Background ========== */
html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    /* Değişti */
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animated gradient orbs - Opaklıkları düşürüldü */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    /* Aydınlık tema için düşürüldü */
    z-index: 0;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.6) 0%, transparent 70%);
    bottom: -120px;
    left: -80px;
    animation-delay: -6s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

/* Subtle grid pattern overlay - Koyu renge çevrildi */
.login-bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ========== Login Wrapper ========== */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    padding: 0 20px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== Glass Card - Aydınlık temaya uyarlandı ========== */
.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px 40px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: box-shadow var(--transition-smooth);
}

.login-card:hover {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.1),
        0 0 80px rgba(227, 6, 19, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ========== Logo Area ========== */
.login-logo {
    text-align: center;
    margin-bottom: 12px;
}

.login-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

.login-logo img:hover {
    transform: scale(1.05);
}

/* ========== Title / Subtitle ========== */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========== Form Groups ========== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.form-group:focus-within label {
    color: var(--primary);
    /* Daha belirgin olması için primary kullanıldı */
}

/* ========== Input Fields ========== */
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all var(--transition-fast);
}

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

.form-input:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: #fafafa;
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(227, 6, 19, 0.02);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

/* Input icon wrapper */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 44px;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-group:focus-within .input-icon {
    color: var(--primary);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--text-secondary);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* ========== Login Button ========== */
.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.25);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(227, 6, 19, 0.2);
}

.btn-login span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Loading state */
.btn-login.loading span {
    opacity: 0;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.7s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========== Divider ========== */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* ========== Footer ========== */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.login-footer p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.login-footer .brand-name {
    color: var(--primary);
    font-weight: 600;
}

/* ========== Error Message ========== */
.login-error {
    background: rgba(227, 6, 19, 0.08);
    border: 1px solid rgba(227, 6, 19, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #d32f2f;
    animation: shakeError 0.4s ease;
}

.login-error.show {
    display: flex;
}

.login-error svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 32px;
        border-radius: 20px;
    }

    .login-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }

    .login-logo img {
        height: 48px;
    }

    .login-header h1 {
        font-size: 20px;
    }
}

/* ========== Announcement Banner ========== */
.announcement-banner {
    position: fixed;
    top: 24px;
    left: 24px;
    max-width: 560px;
    background: var(--bg-card);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(227, 6, 19, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 0 40px rgba(227, 6, 19, 0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    z-index: 1000;
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(227, 6, 19, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-icon svg {
    width: 20px;
    height: 20px;
}

.announcement-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.announcement-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .announcement-banner {
        top: 12px;
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
    }
}