body {
    margin: 0;
    padding: 0;
}

/* ===== Auth Layout ===== */
.auth {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
}

.auth__container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}

.auth__side {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-width: 0;
    padding: 3rem 2.5rem;
    box-sizing: border-box;
}

.auth__side--left {
    background-color: #fff8e1;
}

.auth__side--right {
    background-color: #fff8e1;
}

/* ===== Form Block ===== */
.auth__form {
    width: 100%;
    max-width: 480px;
}

.auth__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.auth__title {
    margin-bottom: 0.5rem;
    color: #1a2238;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.auth__description {
    margin-bottom: 2.25rem;
    color: #6b7280;
    font-size: 1rem;
    text-align: center;
}

/* ===== Status / Errors ===== */
.auth__status {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #86efac;
    border-radius: 8px;
    background-color: #e6f9ee;
    color: #166534;
    font-size: 0.875rem;
}

.auth__error {
    margin-top: 0.375rem;
    margin-bottom: 0;
    color: #dc2626;
    font-size: 0.8125rem;
}

/* ===== Form Fields ===== */
.auth__content-form {
    width: 100%;
}

.auth__field {
    margin-bottom: 1.1rem;
    text-align: left;
}

.auth__label {
    display: block;
    margin-bottom: 0.4rem;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth__input-wrapper {
    position: relative;
    width: 100%;
}

/*
 * The input appearance comes from the existing
 * theme styles for .content-form inputs.
 */
.auth__content-form input {
    margin-bottom: 0;
}

/* Extra right padding for the password-eye button */
.auth__content-form .auth__password-input {
    padding-right: 60px;
}

/* ===== Password Toggle ===== */
.auth__input-addon {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transform: translateY(-50%);
}

.auth__input-addon:hover {
    background: transparent;
    color: #111827;
}

.auth__input-addon:focus {
    outline: none;
}

.auth__input-addon i {
    pointer-events: none;
}

/* ===== Forgot Password ===== */
.auth__forgot {
    margin-bottom: 1rem;
    text-align: right;
}

.auth__link {
    color: var(--crank-base);
    font-size: 0.9rem;
    text-decoration: none;
}

.auth__link:hover {
    color: var(--crank-base);
    text-decoration: underline;
}

/* ===== Submit Button ===== */
.auth__submit {
    margin-top: 0.5rem;
}

.auth__submit-button {
    width: 100%;
    border: none;
}

/* ===== Registration Link ===== */
.auth__signup {
    margin-top: 1.75rem;
    margin-bottom: 0;
    color: #4b5563;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== Right-side Visual ===== */
.auth__visual {
    max-width: 520px;
    text-align: center;
}

.auth__visual__image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.auth__visual__title {
    margin-bottom: 0.5rem;
    color: #1a2238;
    font-size: 1.75rem;
    font-weight: 700;
}

.auth__visual__description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Tablet ===== */
@media (max-width: 991.98px) {
    .auth__container {
        flex-direction: column;
    }

    .auth__side {
        flex: 1 1 100%;
        width: 100%;
        min-height: auto;
        padding: 2.5rem 2rem;
    }

    .auth__side--right {
        display: none;
    }

    .auth__form {
        max-width: 460px;
    }
}

/* ===== Mobile ===== */
@media (max-width: 575.98px) {
    .auth {
        min-height: 100vh;
        background-color: #ffffff;
    }

    .auth__side {
        padding: 2rem 1.25rem;
    }

    .auth__form {
        max-width: 100%;
    }

    .auth__title {
        font-size: 1.6rem;
    }

    .auth__description {
        margin-bottom: 1.75rem;
        font-size: 0.95rem;
    }

    .auth__logo {
        margin-bottom: 1.25rem;
    }

    .auth__logo svg,
    .auth__logo img {
        max-width: 160px;
        height: auto;
    }

    .auth__signup,
    .auth__link,
    .auth__label {
        font-size: 0.875rem;
    }
}
