﻿:root {
    --primary: #075985;
    --primary-dark: #0c4a6e;
    --accent: #0ea5e9;
    --text: #172033;
    --muted: #667085;
    --border: #e5e7eb;
    --background: #f5f8fb;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            #e0f2fe 0,
            #f5f8fb 38%,
            #f5f8fb 100%
        );

    color: var(--text);
}

.page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;
}

.card {
    width: 100%;
    max-width: 620px;

    background: var(--card);

    border: 1px solid rgba(7, 89, 133, 0.10);

    border-radius: 26px;

    padding: 34px;

    box-shadow:
        0 18px 55px rgba(15, 23, 42, 0.10);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
}

.logo {
    width: 66px;
    height: 66px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color: white;

    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow:
        0 12px 28px rgba(14, 165, 233, 0.25);
}

h1 {
    margin: 0;

    text-align: center;

    font-size: 29px;
    line-height: 1.4;

    color: #0f172a;
}

.subtitle {
    margin: 10px auto 28px;

    max-width: 470px;

    text-align: center;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.8;
}

.language-label {
    text-align: center;

    margin-bottom: 12px;

    color: #475467;

    font-size: 14px;
    font-weight: 600;
}

.languages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 9px;

    margin-bottom: 30px;
}

.language {
    border: 1px solid var(--border);

    background: #fff;

    border-radius: 13px;

    min-height: 46px;

    font-size: 14px;
    font-weight: 600;

    color: #344054;

    cursor: pointer;

    transition: all 0.15s ease;
}

.language:hover {
    border-color: #7dd3fc;

    background: #f0f9ff;
}

.language.active {
    background: #e0f2fe;

    border-color: var(--accent);

    color: var(--primary-dark);
}

.info {
    display: grid;

    gap: 12px;

    margin: 0 0 28px;
}

.info-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    background: #f8fafc;

    border-radius: 14px;

    color: #475467;

    font-size: 14px;
}

.info-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #e0f2fe;

    font-size: 17px;
}

.start-button {
    width: 100%;

    min-height: 58px;

    border: 0;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color: white;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(14, 165, 233, 0.23);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.start-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 34px rgba(14, 165, 233, 0.30);
}

.start-button:active {
    transform: translateY(0);
}

.security {
    margin-top: 18px;

    text-align: center;

    color: #98a2b3;

    font-size: 12px;
}

.footer {
    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #f0f2f5;

    text-align: center;

    font-size: 12px;

    color: #98a2b3;
}

[dir="rtl"] .info-item {
    text-align: right;
}

@media (max-width: 600px) {

    .page {
        padding: 12px;
        align-items: flex-start;
    }

    .card {
        margin-top: 12px;

        padding: 25px 18px;

        border-radius: 22px;
    }

    .logo {
        width: 58px;
        height: 58px;

        border-radius: 17px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;

        margin-bottom: 23px;
    }

    .languages {
        grid-template-columns: repeat(2, 1fr);
    }

    .language {
        min-height: 48px;
    }

    .start-button {
        min-height: 60px;

        font-size: 17px;
    }
}

/* =========================================================
   Language Flag Selector
   ========================================================= */

.languages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.language {
    position: relative;

    height: 72px;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;

    border: 2px solid #e5e7eb;
    border-radius: 17px;

    background: #ffffff;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.language:hover {
    transform: translateY(-2px);

    border-color: #38bdf8;

    background: #f8fcff;

    box-shadow:
        0 8px 20px rgba(14,165,233,.13);
}

.language.active {
    border-color: #0284c7;

    background: #f0f9ff;

    box-shadow:
        0 0 0 3px rgba(14,165,233,.12);
}

.flag-emoji {
    display: block;

    font-family:
        "Segoe UI Emoji",
        "Apple Color Emoji",
        "Noto Color Emoji",
        sans-serif;

    font-size: 43px;
    line-height: 1;
}

.kurdistan-flag {
    display: block;

    width: 58px;
    height: auto;

    border-radius: 5px;

    box-shadow:
        0 1px 5px rgba(15,23,42,.16);
}

@media (max-width: 600px) {

    .languages {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
    }

    .language {
        height: 62px;
        min-height: 62px;

        padding: 5px;

        border-radius: 14px;
    }

    .flag-emoji {
        font-size: 36px;
    }

    .kurdistan-flag {
        width: 48px;
    }

}

/* UTP-LOGO-V2-START */

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    border-radius: 20px;

    transition:
        transform .18s ease,
        filter .18s ease;
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.03);
}

.logo-link:active {
    transform: scale(.98);
}

.logo-link:focus-visible {
    outline: 3px solid rgba(14, 165, 233, .30);
    outline-offset: 5px;
}

.utp-logo {
    display: block;

    width: 76px;
    height: 76px;

    object-fit: contain;

    border: 0;

    border-radius: 20px;
}

@media (max-width: 600px) {

    .utp-logo {
        width: 68px;
        height: 68px;

        border-radius: 18px;
    }

}

/* UTP-LOGO-V2-END */


/* REAL-FLAGS-V3-START */

.language {
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.language-flag {
    display: block;

    width: 66px;
    height: 42px;

    flex: 0 0 auto;

    border-radius: 5px;

    overflow: hidden;

    box-shadow:
        0 1px 4px rgba(15, 23, 42, .20);

    pointer-events: none;
}

.language.active .language-flag {
    box-shadow:
        0 1px 4px rgba(15, 23, 42, .20),
        0 0 0 1px rgba(2, 132, 199, .08);
}

/*
 Old emoji classes are intentionally hidden.
 They are no longer used but this prevents
 any old cached markup from displaying letters.
*/

.flag-emoji {
    display: none !important;
}

.kurdistan-flag {
    display: none !important;
}

@media (max-width: 600px) {

    .language-flag {
        width: 58px;
        height: 37px;

        border-radius: 4px;
    }

}

/* REAL-FLAGS-V3-END */


/* LANGUAGE-IMAGE-FLAGS-V4-START */

.language-flag-image {
    display: block;

    width: 66px;
    height: 42px;

    object-fit: cover;

    border-radius: 5px;

    pointer-events: none;

    user-select: none;

    -webkit-user-drag: none;
}

@media (max-width: 600px) {

    .language-flag-image {
        width: 58px;
        height: 37px;
    }

}

/* LANGUAGE-IMAGE-FLAGS-V4-END */

