:root {
    --okul-blue: #1a56db;
    --okul-blue-dark: #1044b5;
    --okul-blue-light: #e8f0fd;
    --okul-blue-glow: rgba(26, 86, 219, 0.15);
    --okul-text: #0f172a;
    --okul-muted: #64748b;
    --okul-border: #e2e8f0;
    --okul-bg: #f0f5ff;
    --okul-white: #ffffff;
    --okul-shadow: 0 20px 60px rgba(26, 86, 219, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.okul-login-page {
    font-family: "DM Sans", sans-serif;
    background: var(--okul-bg);
    position: relative;
    overflow-x: hidden;
}

.okul-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(26, 86, 219, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(99, 179, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.okul-login-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: okul-float 8s ease-in-out infinite;
}

.okul-login-shape.shape-1 {
    width: 380px;
    height: 380px;
    background: #93c5fd;
    top: -100px;
    left: -110px;
}

.okul-login-shape.shape-2 {
    width: 280px;
    height: 280px;
    background: #a5b4fc;
    bottom: -90px;
    right: -70px;
    animation-delay: -3s;
}

.okul-login-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: #60a5fa;
    top: 52%;
    left: 64%;
    animation-delay: -6s;
}

@keyframes okul-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.05); }
}

.okul-login-page .yonetim-auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
}

.okul-login-page .yonetim-auth-card {
    width: 100%;
    max-width: 980px;
    padding: 0;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    box-shadow: var(--okul-shadow);
    background: var(--okul-white);
}

.okul-login-page .yonetim-auth-header {
    margin-bottom: 0;
    padding: 28px 32px 22px;
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 55%, #3b82f6 100%);
    position: relative;
}

.okul-login-page .yonetim-auth-header::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.okul-login-page .yonetim-auth-header::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: 34%;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.okul-login-page .yonetim-auth-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    margin: 0;
    border: 0;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.okul-login-page .yonetim-auth-header h1 {
    margin: 0;
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: -0.3px;
    font-size: 1.9rem;
    position: relative;
    z-index: 1;
}

.okul-login-page .yonetim-auth-header p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.okul-login-page .okul-auth-tabs {
    margin: 0;
    padding: 12px 32px 0;
    transform: none;
    border: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f2f6fd;
    border-radius: 14px;
}

.okul-login-page .okul-auth-tab {
    border: 1px solid #d7e4f6;
    background: #ffffff;
    color: #2f4e78;
    border-radius: 12px;
    width: 100%;
    text-align: center;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.okul-login-page .okul-auth-tab:hover {
    background: #edf4ff;
    color: #1a56db;
    border-color: #bfd4f3;
}

.okul-login-page .okul-auth-tab.is-active {
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
    color: #fff;
    border-color: #1a56db;
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.28);
}

.okul-login-page .okul-auth-panel {
    padding: 10px 32px 20px;
}

.okul-auth-form-grid {
    gap: 14px;
}

.okul-register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.okul-login-page .yonetim-form-field label {
    margin: 0 0 7px;
    font-size: 0.78rem;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--okul-muted);
}

.okul-login-page .yonetim-form-field input,
.okul-login-page .yonetim-form-field select {
    height: 46px;
    border: 1.5px solid var(--okul-border);
    border-radius: 11px;
    background: #fafbff;
    font-size: 0.95rem;
    color: var(--okul-text);
    padding: 0 12px;
}

.okul-login-page .yonetim-form-field input:focus,
.okul-login-page .yonetim-form-field select:focus {
    border-color: var(--okul-blue);
    background: #fff;
    box-shadow: 0 0 0 4px var(--okul-blue-glow);
}

.okul-password-wrap input {
    padding-right: 44px;
}

.okul-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7890ae;
    transition: color 0.2s;
}

.okul-password-toggle:hover {
    color: var(--okul-blue);
}

.okul-login-page .okul-captcha-row {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

.okul-login-page .okul-captcha-code {
    min-width: 100px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 11px;
    border: 0;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 0.96rem;
    letter-spacing: 0.18em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.okul-captcha-refresh {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    border: 1.5px solid var(--okul-border);
    background: #fafbff;
    color: var(--okul-blue);
    transition: all 0.2s;
}

.okul-captcha-refresh:hover {
    border-color: var(--okul-blue);
    background: var(--okul-blue-light);
    transform: rotate(180deg);
}

.okul-remember-switch {
    margin: 0;
    color: var(--okul-muted);
}

.okul-remember-switch .form-check-label {
    font-size: 0.9rem;
}

.okul-auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #1a56db 0%, #2563eb 100%);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 22px rgba(26, 86, 219, 0.34);
    transition: transform 0.2s, box-shadow 0.2s;
}

.okul-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 86, 219, 0.44);
}

.okul-auth-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: var(--okul-muted);
}

.okul-auth-footer-links a {
    color: var(--okul-blue);
    text-decoration: none;
    font-weight: 600;
}

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

.okul-student-gate {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 18px;
    border: 1.5px dashed #bfd4f3;
    border-radius: 12px;
    background: #f7fbff;
    text-align: center;
}

.okul-student-gate p {
    margin: 0 0 12px;
    color: #325a87;
    font-size: 0.92rem;
}

.okul-student-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #1a56db;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.3);
}

.okul-student-gate-btn:hover {
    color: #fff;
    background: #1044b5;
}

.okul-login-page .okul-kvkk-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    color: var(--okul-muted);
}

.okul-login-page .okul-kvkk-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--okul-blue);
}

.okul-policy-link {
    color: var(--okul-blue);
    font-weight: 700;
    text-decoration: underline;
}

.okul-policy-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.okul-policy-modal.is-open {
    display: block;
}

.okul-policy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 28, 53, 0.45);
}

.okul-policy-dialog {
    position: relative;
    width: min(760px, 92%);
    margin: 7vh auto 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #d6e3f2;
    box-shadow: 0 24px 48px rgba(8, 35, 73, 0.25);
    padding: 16px 18px;
}

.okul-policy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.okul-policy-head h3 {
    margin: 0;
    color: #1a436f;
    font-size: 1.2rem;
}

.okul-policy-close {
    border: 1px solid #d2deec;
    background: #f7fbff;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    color: #21568c;
}

.okul-policy-content {
    margin-top: 4px;
    max-height: 56vh;
    overflow: auto;
    color: #4a5f79;
    font-size: 0.92rem;
    line-height: 1.5;
    padding-right: 6px;
}

.okul-policy-content p {
    margin: 0 0 8px;
}

@media (max-width: 767.98px) {
    .okul-login-page .yonetim-auth-wrap {
        padding: 18px 10px;
    }

    .okul-login-page .yonetim-auth-header {
        padding: 22px 18px 18px;
    }

    .okul-login-page .okul-auth-tabs {
        padding: 0 18px;
        transform: none;
        padding-top: 10px;
    }

    .okul-login-page .okul-auth-panel {
        padding: 10px 18px 16px;
    }

    .okul-register-grid {
        grid-template-columns: 1fr;
    }
}
