/* =========================================================
   ruluERP
   AUTHENTICATION STYLES
   ========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at top right,
            rgba(201, 180, 0, 0.08),
            transparent 35%
        ),
        var(--light);
}


/* =========================================================
   AUTH MAIN
   ========================================================= */

.auth-main {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;
}

.auth-container {
    width: 100%;
    max-width: 430px;

    margin-inline: auto;
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    position: relative;

    width: 100%;

    padding: 40px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.auth-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 70px;
    height: 4px;

    transform: translateX(-50%);

    border-radius: 0 0 8px 8px;

    background: var(--gold);
}


/* =========================================================
   HEADING
   ========================================================= */

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading .section-eyebrow {
    margin-bottom: 8px;
}

.auth-heading h1 {
    margin: 0;

    color: var(--black);

    font-size: 34px;
    line-height: 1.15;

    letter-spacing: -1.2px;
}

.auth-heading p {
    max-width: 330px;

    margin: 11px auto 0;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   ERROR
   ========================================================= */

.auth-error {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-bottom: 22px;
    padding: 13px 15px;

    background: #fff1f1;

    border: 1px solid #f3cccc;
    border-radius: 8px;

    color: #9f2020;

    font-size: 13px;

    text-align: left;
}

.auth-error strong {
    font-size: 13px;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 20px;

    text-align: left;
}

.form-group {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group label {
    color: var(--black);

    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    background: var(--white);

    border: 1px solid #d7d7d2;
    border-radius: 7px;

    color: var(--black);

    font-size: 14px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input::placeholder {
    color: #a0a0a0;
}

.form-group input:hover {
    border-color: #bcbcb5;
}

.form-group input:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        hsla(51, 89%, 42%, 0.15);
}


/* =========================================================
   SUBMIT
   ========================================================= */

.auth-submit {
    width: 100%;
    height: 50px;

    margin-top: 2px;

    border: 1px solid var(--gold);
    border-radius: 7px;

    background: var(--gold);

    color: #111111;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.auth-submit:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);

    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}


/* =========================================================
   AUTH FOOTER
   ========================================================= */

.auth-footer {
    width: 100%;

    display: flex;
    justify-content: center;

    margin-top: 25px;
    padding-top: 22px;

    border-top: 1px solid var(--border);
}

.auth-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--white);

    color: var(--muted);

    font-size: 13px;
    font-weight: 700;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.auth-back-button:hover {
    color: var(--black);

    border-color: var(--gold);

    background: var(--gold-soft);

    transform: translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .auth-main {
        padding: 45px 15px;
    }

    .auth-card {
        padding: 34px 22px;
    }

    .auth-heading h1 {
        font-size: 29px;
    }

    .auth-heading p {
        font-size: 13px;
    }
}


@media (max-width: 420px) {

    .auth-card {
        padding: 32px 18px;
    }
}