/* =========================================================
   Auth Layout Stylesheet
   Forge / Khazad
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    font: 16px/24px "Trebuchet MS", Helvetica, sans-serif;
    background: #111;
    color: #2c2c2c;
}


/* =========================================================
   Main split layout
   ========================================================= */

.auth-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.auth-left img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.auth-panel {
    width: 100%;
    max-width: 380px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-brand-title {
    color: #8B6F1E;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
}

.auth-brand-subtitle {
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   Left panel
   ========================================================= */

.auth-left {
    flex: 1;
    overflow: hidden;
    background: #8B6F1E;
}

.auth-left img {
    width: 100%;
    height: 100%;
    display: block;

    /*
     * Prefer showing the complete Forge door.
     * If this leaves too much empty space, change to:
     *
     * object-fit: cover;
     */
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   Right panel
   ========================================================= */

.auth-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 11vh 48px 48px;

    overflow-y: auto;

    background: #ffffff;
}


/* Main content generated by Voyti */

.auth-right > div {
    width: 100%;
    max-width: 380px;
}


/* =========================================================
   Heading
   ========================================================= */

.auth-right h1 {
    margin: 0 0 32px;

    color: #101e56;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
}


/* =========================================================
   Form
   ========================================================= */

.auth-right form {
    width: 100%;
}

.auth-right form > div {
    margin-bottom: 20px;
}

.auth-right label {
    display: block;

    margin-bottom: 7px;

    color: #555;

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


/* =========================================================
   Text fields
   ========================================================= */

.auth-right input[type="text"],
.auth-right input[type="email"],
.auth-right input[type="password"] {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #cfcfcf;
    border-radius: 6px;

    background: #ffffff;
    color: #2c2c2c;

    font: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-right input[type="text"]:focus,
.auth-right input[type="email"]:focus,
.auth-right input[type="password"]:focus {
    outline: none;

    border-color: #101e56;

    box-shadow:
        0 0 0 3px rgba(16, 30, 86, 0.12);
}


/* =========================================================
   Remember me
   ========================================================= */

.auth-right label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 0;

    font-weight: 400;

    cursor: pointer;
}

.auth-right input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin: 0;

    cursor: pointer;
}


/* =========================================================
   Buttons
   ========================================================= */

.auth-right form > div:has(button) {
    display: flex;

    gap: 12px;

    margin-top: 30px;
    margin-bottom: 0;
}

.auth-right button {
    min-height: 44px;

    padding: 11px 18px;

    border-radius: 6px;

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

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.05s ease;
}

.auth-right button:active {
    transform: scale(0.98);
}


/* Primary button */

.auth-right button[type="submit"] {
    flex: 1;

    border: 1px solid #101e56;

    background: #101e56;
    color: #ffffff;
}

.auth-right button[type="submit"]:hover {
    border-color: #162a80;
    background: #162a80;
}


/* Secondary button */

.auth-right button[type="reset"] {
    border: 1px solid #c8c8c8;

    background: #ffffff;
    color: #555;
}

.auth-right button[type="reset"]:hover {
    background: #f2f2f2;
}


/* =========================================================
   Links
   ========================================================= */

.auth-right .mt-3 {
    margin-top: 26px;

    color: #777;

    font-size: 14px;
}

.auth-right a {
    color: #101e56;

    text-decoration: none;
}

.auth-right a:hover {
    text-decoration: underline;
}


/* =========================================================
   Errors / validation
   ========================================================= */

.auth-right .error,
.auth-right .invalid-feedback,
.auth-right .help-block {
    margin-top: 6px;

    color: #a10000;

    font-size: 13px;
    line-height: 18px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .auth-left {
        flex: 0 0 42%;
    }

    .auth-right {
        flex: 1;

        padding:
            9vh
            32px
            32px;
    }
}


@media (max-width: 700px) {

    body {
        overflow-y: auto;
    }

    .auth-container {
        min-height: 100vh;
        height: auto;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        min-height: 100vh;

        align-items: flex-start;

        padding:
            10vh
            24px
            40px;
    }

    .auth-right > div {
        max-width: 420px;
    }
}