/* Fontlar css/fonts.css içinde tanımlıdır ve her HTML'e <link> ile bağlıdır. */

:root {
    --brand-white: #fff;
    --brand-red: #c8102e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Neuland Grotesk", sans-serif;
}

.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: url("../images/login-bg.jpg") no-repeat center center;
    background-size: cover;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    padding: 40px 20px;
}

.know-who {
    color: #fff;
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Hackney";
    font-size: 97.778px;
    font-style: normal;
    font-weight: 700;
    line-height: 83%; /* 81.156px */
    letter-spacing: -1.89px;
    margin-bottom: 8px;
}

.iam-logo {
    width: 260px;
    max-width: 60%;
    height: auto;
    margin-bottom: 3.81rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
}

.email-label {
    align-self: flex-start;
    color: #fff;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Neuland Grotesk";
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 23.8px */
    margin-bottom: 8px;
}

.email-input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 2px;
    background: #fff;
    font-family: "Neuland Grotesk", sans-serif;
    font-size: 17px;
    outline: none;
}

.helper-text {
    color: #fff;
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Neuland Grotesk";
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 23.8px */
    margin-top: 1.06rem;
    margin-bottom: 2rem;
}

.next-btn {
    display: flex;
    padding: 10px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    background: var(--brand-red, #c8102e);
    color: var(--brand-white, #fff);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Neuland Grotesk";
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 23.8px */
    letter-spacing: -0.89px;
}

.next-btn:hover {
    opacity: 0.9;
}

/* Buton yüklenme durumu: opacity + spinner */
.is-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
    color: transparent !important;
}

.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.form-error {
    color: #ffce00;
    font-family: "Neuland Grotesk", sans-serif;
    font-size: 15px;
    line-height: 140%;
    min-height: 1em;
    margin: 4px 0 8px;
    text-align: center;
}

.form-error:empty {
    margin: 0;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    .login-content {
        padding: 40px 24px;
        justify-content: flex-start;
    }

    .know-who {
        font-size: 52px;
        line-height: 83%;
        letter-spacing: -1px;
        align-self: center;
        margin-bottom: 4px;
    }

    .iam-logo {
        width: 100%;
        max-width: 17rem;
        margin-bottom: 20px;
    }

    .login-form {
        max-width: 100%;
    }

    .email-input {
        padding: 16px 14px;
    }

    .email-label {
        font-size: 0.87rem;
    }

    .helper-text {
        white-space: nowrap;
        font-size: 0.87rem;
    }
}
