:root {
    --accent: #1e9bff;
    --accent-2: #0aa1c2;
    --bg-dark: #071a23;
    --text: #e6f6ff;
    --muted: rgba(230, 246, 255, 0.7);
    --radius: 12px;
    --shadow: 0 8px 30px rgba(2, 8, 23, 0.6);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,
body {
    height: 100%;
    margin: 0;
}
body {
    background: radial-gradient(ellipse at bottom left, rgba(19, 112, 128, 0.18) 0%, transparent 25%), radial-gradient(ellipse at bottom right, rgba(2, 88, 139, 0.12) 0%, transparent 20%),
        linear-gradient(180deg, #04202a 0%, #071a23 60%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px;
    box-sizing: border-box;
}

header {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-wrap {
    width: 220px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Sallama animasyonu */
    animation: logoShake 3s infinite;
}

.logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: relative;
    z-index: 1;
    /* Hafif parıltı efekti */
    animation: logoShine 3s infinite;
}

/* Sağ-sol sallama animasyonu */
@keyframes logoShake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(1deg); }
    20% { transform: rotate(-1deg); }
    30% { transform: rotate(1deg); }
    40% { transform: rotate(-1deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Hafif parıltı efekti */
@keyframes logoShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.page {
    width: 100%;
    max-width: 980px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-height: 220px;
}

.title {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
    letter-spacing: 1px;
    text-align: center;
}
.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
    text-align: center;
}

form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--text);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}
.input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 86, 133, 0.34);
}
.btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 600;
}

.helper {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.modal-open {
    overflow: hidden;
}

/* Modal styling (daha koyu arka plan) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 12, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    z-index: 2000;
    backdrop-filter: blur(8px) saturate(120%);
}
.modal {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(3, 8, 12, 0.7);
    z-index: 2100;
}
.modal h3 {
    margin: 0 0 6px 0;
    color: var(--accent);
    font-size: 18px;
}
.modal p {
    color: var(--muted);
    margin: 0 0 12px 0;
}
.info-row {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.code {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 700;
    letter-spacing: 2px;
}

.close-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

/* Blur the background when modal open */
body.modal-open .page,
body.modal-open header {
    filter: blur(6px) brightness(0.85);
    pointer-events: none;
}

/* Ensure SweetAlert is always on top */
.swal2-container {
    z-index: 100000 !important;
}

@media (max-width: 760px) {
    .logo-wrap {
        width: 160px;
        height: 60px;
    }
    .card {
        padding: 22px;
    }
}

@media (max-width: 420px) {
    .input {
        padding: 12px;
    }
    .btn {
        padding: 12px;
    }
    .title {
        font-size: 20px;
    }
}