/* ================================================= */
/* RESET & TEMEL */
/* ================================================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
    background: #f3f5f9;
    color: #0f172a;
}

/* ================================================= */
/* GLOBAL CONTAINER */
/* ================================================= */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================================= */
/* LOGIN ANA ALANI */
/* ================================================= */
.login-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

/* ================================================= */
/* GRID */
/* ================================================= */
.grid {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ================================================= */
/* LOGIN KARTI */
/* ================================================= */
.card {
    width: 100%;
    max-width: 760px; /* 🔑 PC’de yatay uzun */
    padding: 6px;
    border-radius: 28px;
    background: linear-gradient(
        90deg,
        #4f46e5,
        #7c3aed,
        #db2777,
        #f59e0b
    );
}

.card-inner {
    background: #ffffff;
    border-radius: 22px;
    padding: 46px 56px; /* 🔑 PC yatay ferahlık */
}

/* ================================================= */
/* BAŞLIK */
/* ================================================= */
h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
}

/* ================================================= */
/* FORM */
/* ================================================= */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

textarea {
    min-height: 180px;
}

/* ================================================= */
/* BUTON */
/* ================================================= */
button,
.btn,
.start-btn,
a.button {
    display: block;
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(
        90deg,
        #4f46e5,
        #7c3aed,
        #db2777,
        #f59e0b
    );
}

button:active,
a:active {
    transform: scale(0.98);
}

/* ================================================= */
/* ALT SOL – ANA SAYFA */
/* ================================================= */
.footer-link {
    padding: 24px;
}

.footer-link a {
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    background: linear-gradient(
        90deg,
        #4338ca,
        #7c3aed,
        #ec4899
    );
    box-shadow: 0 8px 22px rgba(124,58,237,0.35);
}

/* ================================================= */
/* TABLET (769px – 1023px) */
/* ================================================= */
@media (max-width: 1023px) {

    .card {
        max-width: 640px;
    }

    .card-inner {
        padding: 38px 36px;
    }

    h1 {
        font-size: 28px;
    }
}

/* ================================================= */
/* MOBİL – TÜM SAYFALAR TAM EKRAN */
/* ================================================= */
@media (max-width: 768px) {

    html, body {
        min-height: 100svh; /* 🔑 iOS uyumlu */
        overflow-x: hidden;
    }

    .container {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
    }

    .login-area {
        flex: 1;
        padding: 20px 16px;
    }

    .grid {
        width: 100%;
    }

    .card {
        max-width: none;
        width: 100%;
        border-radius: 22px;
    }

    .card-inner {
        padding: 26px 22px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 22px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        padding: 16px;
    }

    button,
    .btn,
    .start-btn,
    a.button {
        font-size: 16px;
        padding: 18px;
    }

    .footer-link {
        padding: 16px;
    }
}
/* ================================================= */
/* KART İÇİ TAŞMA ENGELLEME */
/* ================================================= */

.card-inner {
    overflow-x: hidden;
}

/* TABLO SARICI */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* TABLO */
.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* HÜCRELER */
.table-wrap th,
.table-wrap td {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    font-size: 14px;
    padding: 10px;
}
/* ================================================= */
/* MOBİL – SINAV KART GÖRÜNÜMÜ (TABLO YERİNE) */
/* ================================================= */

.exam-cards {
    display: none;
}

@media (max-width: 768px) {

    /* MOBİLDE TABLOYU GİZLE */
    table {
        display: none;
    }

    /* MOBİL KARTLARI AÇ */
    .exam-cards {
        display: block;
    }

    .exam-card {
        background: #ffffff;
        border-radius: 18px;
        padding: 16px;
        margin-bottom: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }

    .exam-title {
        font-size: 17px;
        font-weight: 900;
        margin-bottom: 10px;
        color: #020617;
    }

    .exam-row {
        font-size: 14px;
        margin-bottom: 6px;
        color: #334155;
    }

    .exam-actions a,
    .exam-actions button {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding: 12px;
        border-radius: 12px;
        font-weight: 800;
        text-align: center;
        border: none;
        text-decoration: none;
        background: linear-gradient(
            90deg,
            #4f46e5,
            #7c3aed,
            #db2777,
            #f59e0b
        );
        color: #fff;
        cursor: pointer;
    }
}