* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f8f9fa;
    color: #1a1a2e;
}

a {
    text-decoration: none;
}


/* ================================
   SIGN IN PAGE
================================ */

.signin-page {
    min-height: 100vh;

    padding: 45px 30px 60px;

    background:
        radial-gradient(
            circle at top left,
            rgba(26, 86, 219, 0.05),
            transparent 35%
        ),
        #f8f9fa;
}

.signin-container {
    width: 100%;
    max-width: 480px;

    margin: 0 auto;
}


/* ================================
   BACK TO HOME
================================ */

.back-link {
    display: inline-block;

    margin-bottom: 18px;

    color: #1a56db;

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

    transition: 0.2s ease;
}

.back-link:hover {
    color: #1341b0;
}


/* ================================
   LANGUAGE TOGGLE (auth screens)
   ================================ */

.auth-language-row {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 18px;
}

/* The pill rules are duplicated from shared-layout.css rather than imported:
   these screens load their own stylesheet only, and pulling the whole shared
   layout in to style two links would override several of the rules above. */

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}

.language-toggle__link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.language-toggle__link:hover,
.language-toggle__link.active {
    color: #1a56db;
}

.language-toggle__divider {
    color: #d0d5dd;
}


/* ================================
   SIGN IN CARD
   ================================ */

.signin-card {
    width: 100%;

    padding: 38px 42px 40px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);

    text-align: center;
}


/* ================================
   LOGO
================================ */

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

    display: flex;

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

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #1a56db;

    color: #ffffff;

    font-size: 25px;
    font-weight: 700;
}

.signin-card h1 {
    margin-bottom: 6px;

    color: #1a1a2e;

    font-size: 24px;
    font-weight: 700;
}

.subtitle {
    margin-bottom: 27px;

    color: #6b7280;

    font-size: 14px;
}


/* ================================
   FORM
================================ */

.signin-form {
    width: 100%;

    text-align: left;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #1a1a2e;

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

.form-group input {
    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid #cfd6e1;

    border-radius: 7px;

    background: #ffffff;

    color: #1a1a2e;

    font-size: 14px;

    outline: none;

    transition: 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: #1a56db;

    box-shadow:
        0 0 0 2px rgba(26, 86, 219, 0.08);
}


/* ================================
   PASSWORD
================================ */

.password-wrapper {
    position: relative;

    width: 100%;
}

.password-wrapper input {
    padding-right: 45px;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    width: 30px;
    height: 30px;

    display: flex;

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

    padding: 0;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #64748b;

    cursor: pointer;
}

.password-toggle:hover {
    color: #1a56db;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}


/* ================================
   FORGOT PASSWORD
================================ */

.forgot-wrap {
    display: flex;

    justify-content: flex-end;

    margin-top: -2px;
    margin-bottom: 18px;
}

.forgot-link {
    color: #1a56db;

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

.forgot-link:hover {
    color: #1341b0;

    text-decoration: underline;
}


/* ================================
   ERROR
================================ */

.error-message {
    display: none;

    margin-bottom: 12px;

    padding: 9px 11px;

    border: 1px solid #fecaca;

    border-radius: 6px;

    background: #fef2f2;

    color: #dc2626;

    font-size: 12px;

    line-height: 1.4;
}

.error-message.show {
    display: block;
}


/* ================================
   SIGN IN BUTTON
================================ */

.signin-btn {
    width: 100%;
    height: 46px;

    border: none;

    border-radius: 7px;

    background: #1a56db;

    color: #ffffff;

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

    cursor: pointer;

    transition: 0.2s ease;
}

.signin-btn:hover {
    background: #1341b0;
}

.signin-btn:active {
    transform: translateY(1px);
}


/* ================================
   REGISTER
================================ */

.register-divider {
    display: flex;

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

    gap: 5px;

    margin-top: 22px;

    color: #6b7280;

    font-size: 13px;
}

.register-divider a {
    color: #1a56db;

    font-weight: 700;
}

.register-divider a:hover {
    color: #1341b0;

    text-decoration: underline;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {

    .signin-page {
        padding: 30px 18px 45px;
    }

    .signin-container {
        max-width: 100%;
    }

    .signin-card {
        padding: 32px 25px 34px;

        border-radius: 16px;
    }

    .signin-card h1 {
        font-size: 22px;
    }

    .subtitle {
        margin-bottom: 24px;

        font-size: 13px;
    }
}


@media (max-width: 400px) {

    .signin-page {
        padding: 25px 14px 40px;
    }

    .signin-card {
        padding: 28px 20px 30px;
    }

    .logo-circle {
        width: 54px;
        height: 54px;
    }

    .signin-card h1 {
        font-size: 21px;
    }

    .register-divider {
        flex-direction: column;

        gap: 3px;
    }
}
.timeout-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}
