/* Giriş ve şifre yenileme ekranları — logo paleti
   #134E4A koyu teal · #0D9488 ana teal · #5EEAD4 nane · #EA580C turuncu */
:root {
    --page-bg: #f2f8f7;
    --surface: #ffffff;
    --surface-soft: #f7fbfa;
    --line: #d7e6e3;
    --text: #14262b;
    --muted: #5f7b78;
    --primary: #0d9488;
    --primary-deep: #134e4a;
    --accent: #5eead4;
    --spark: #ea580c;
    --shadow: 0 24px 56px rgba(19, 78, 74, 0.14);
}

html,
body.login-page {
    min-height: 100%;
}

body.login-page {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(13, 148, 136, 0.08), transparent 26%),
        linear-gradient(180deg, #f7fdfc 0%, var(--page-bg) 100%);
}

.login-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.login-stage {
    width: min(1080px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(420px, 460px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-stage__panel {
    padding: 56px;
}

.login-stage__panel--brand {
    background:
        radial-gradient(circle at 12% 8%, rgba(94, 234, 212, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 253, 250, 0.98) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-stage__panel--form {
    background: var(--surface);
    display: flex;
    align-items: center;
}

.login-stage__divider {
    background: linear-gradient(180deg, transparent 0%, #dbeae7 18%, #dbeae7 82%, transparent 100%);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logolu marka bloğu: yatay logo zaten "e-ders" yazısını içerdiği için
   rozet + isim yerine tek görsel kullanılır. Ayrı değiştirici sınıf,
   rozetli kullanımın (şifre yenileme) etkilenmemesi içindir. */
.brand-lockup--logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.brand-lockup__logo {
    width: 190px;
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-lockup__mark {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-lockup__name {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-lockup__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.brand-copy {
    max-width: 460px;
    margin: 40px 0;
}

.brand-copy__eyebrow,
.form-shell__eyebrow {
    display: inline-flex;
    margin: 0 0 18px;
    color: var(--primary-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.brand-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.brand-points {
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.brand-point {
    padding: 18px 20px;
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.brand-point strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
    font-weight: 700;
}

.brand-point span {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.form-shell {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.form-shell__head {
    margin-bottom: 28px;
}

.form-shell__head h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.form-shell__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 18px;
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f4d49;
}

.field-input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #d7e6e3;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-input::placeholder {
    color: #93aeab;
}

.field-input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.login-submit {
    width: 100%;
    height: 56px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.2);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(13, 148, 136, 0.24);
}

.login-submit:disabled {
    cursor: wait;
    transform: none;
    opacity: 0.96;
}

.login-submit__loader {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #ffffff;
    animation: login-spin 0.75s linear infinite;
}

.login-submit.is-loading .login-submit__loader {
    display: inline-flex;
}

.login-submit.is-loading .login-submit__label {
    opacity: 0.92;
}

.form-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.form-links span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a9c6c2;
}

.form-links a {
    color: var(--primary-deep);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
}

.form-links a:hover {
    text-decoration: underline;
}

.login-note {
    margin: 18px 0 0;
    color: #7f9d9a;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: center;
}

.renewal-stage__brand {
    gap: 28px;
}

.renewal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 16px;
    background: #f1f8f7;
    border: 1px solid rgba(19, 78, 74, 0.06);
}

.renewal-tab {
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.renewal-tab.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(19, 78, 74, 0.08);
}

.renewal-panels {
    position: relative;
}

.renewal-panel {
    display: none;
}

.renewal-panel.is-active {
    display: block;
}

.course-modal__content {
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: 26px;
    box-shadow: 0 28px 64px rgba(19, 78, 74, 0.18);
    padding: 10px;
}

.course-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.course-modal__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.course-modal__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-modal__eyebrow {
    margin: 0 0 4px;
    color: var(--primary-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-modal .modal-title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text);
}

.course-modal__description {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.course-modal__label {
    display: block;
    margin-bottom: 10px;
    color: #1f4d49;
    font-size: 0.92rem;
    font-weight: 700;
}

.course-modal__select {
    min-height: 54px;
    border-radius: 14px;
    border-color: #d7e6e3;
    background: var(--surface-soft);
    box-shadow: none;
}

.course-modal__select:focus {
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.course-modal__button {
    min-width: 140px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff !important;
    font-weight: 800;
    padding: 0 18px;
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.2);
}

.course-modal__button:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

#toast-container > div {
    opacity: 1;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(19, 78, 74, 0.18);
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .login-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-stage__divider {
        display: none;
    }

    .login-stage__panel--form {
        order: 1;
    }

    .login-stage__panel--brand {
        order: 2;
    }

    .login-stage__panel {
        padding: 32px 28px;
    }

    .login-stage__panel--brand {
        gap: 28px;
    }

    .form-shell {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .login-layout {
        padding: 12px;
    }

    .login-stage {
        border-radius: 22px;
    }

    .login-stage__panel {
        padding: 24px 20px;
    }

    .login-stage__panel--brand {
        display: none;
    }

    .brand-copy {
        margin: 8px 0;
    }

    .brand-copy h1 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .form-shell__head h2 {
        font-size: 1.7rem;
    }

    .form-links {
        flex-direction: column;
        gap: 10px;
    }

    .form-links span {
        display: none;
    }

    .renewal-tabs {
        grid-template-columns: 1fr;
    }
}
