/* =========================================================
   User Authentication
   ========================================================= */

.user-auth-page {
    min-height: calc(100vh - 150px);

    padding: 55px 0 70px;

    background:
        linear-gradient(
            135deg,
            #f4faf6 0%,
            #ffffff 50%,
            #f4f8fc 100%
        );
}


.user-auth-container {
    width: min(100% - 40px, 650px);

    margin: 0 auto;
}


/* =========================================================
   Header
   ========================================================= */

.user-auth-header {
    margin-bottom: 28px;

    text-align: center;
}


.auth-logo-mark {
    display: flex;

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

    width: 50px;
    height: 50px;

    margin: 0 auto 15px;

    color: #ffffff;

    background: #116b3d;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .5px;

    box-shadow:
        0 7px 18px rgba(17, 107, 61, .18);
}


.user-auth-header h1 {
    margin: 0 0 7px;

    color: #163d2a;

    font-size: 28px;
    font-weight: 750;

    line-height: 1.3;
}


.user-auth-header p {
    margin: 0;

    color: #718079;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   Main Card
   ========================================================= */

.auth-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfeae4;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(20, 66, 42, .07);
}


/* =========================================================
   Toggle
   ========================================================= */

.auth-toggle {
    display: grid;

    grid-template-columns: 1fr 1fr;

    padding: 6px;

    margin: 10px;

    background: #f1f5f3;

    border-radius: 8px;
}


.auth-toggle-btn {
    height: 38px;

    border: 0;

    border-radius: 6px;

    color: #718078;

    background: transparent;

    font-family: inherit;

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}


.auth-toggle-btn.active {
    color: #116b3d;

    background: #ffffff;

    box-shadow:
        0 2px 7px rgba(20, 66, 42, .08);
}


/* =========================================================
   Panels
   ========================================================= */

.auth-panel {
    display: none;

    padding: 25px 30px 28px;
}


.auth-panel.active {
    display: block;

    animation: authFade .25s ease;
}


@keyframes authFade {

    from {
        opacity: 0;

        transform: translateY(5px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


.auth-panel-header {
    margin-bottom: 24px;
}


.auth-panel-header h2 {
    margin: 0 0 5px;

    color: #193f2d;

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


.auth-panel-header p {
    margin: 0;

    color: #89968f;

    font-size: 10px;
}


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

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


.auth-form-group label {
    display: block;

    margin-bottom: 6px;

    color: #294638;

    font-size: 11px;
    font-weight: 650;
}


.auth-form-group label span {
    color: #c74c4c;
}


.auth-form-group input {
    display: block;

    width: 100%;
    height: 41px;

    padding: 0 12px;

    box-sizing: border-box;

    color: #294638;

    background: #ffffff;

    border: 1px solid #d7e2dc;

    border-radius: 6px;

    outline: none;

    font-family: inherit;
    font-size: 11px;

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


.auth-form-group input:focus {
    border-color: #3b9463;

    box-shadow:
        0 0 0 3px rgba(59, 148, 99, .1);
}


.auth-form-group input::placeholder {
    color: #a6b2ac;
}


.field-help {
    display: block;

    margin-top: 5px;

    color: #929f99;

    font-size: 9px;
}


/* =========================================================
   Password
   ========================================================= */

.password-label-row {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


.password-label-row a {
    margin-bottom: 6px;

    color: #116b3d;

    font-size: 9px;

    text-decoration: none;
}


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

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


/* =========================================================
   Category
   ========================================================= */

.category-options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


.category-option {
    position: relative;

    margin: 0;

    cursor: pointer;
}


.category-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.category-box {
    display: block;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #d7e2dc;

    border-radius: 7px;

    transition:
        border-color .2s ease,
        background .2s ease;
}


.category-box strong {
    display: block;

    margin-bottom: 3px;

    color: #294638;

    font-size: 11px;
}


.category-box small {
    color: #89968f;

    font-size: 9px;
}


.category-option input:checked + .category-box {
    border-color: #4b9a6b;

    background: #f2faf5;

    box-shadow:
        0 0 0 2px rgba(75, 154, 107, .08);
}


/* =========================================================
   Photo Upload
   ========================================================= */

.profile-photo-upload {
    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 20px;

    padding: 13px;

    background: #f8fbf9;

    border: 1px dashed #c5d9cd;

    border-radius: 8px;

    cursor: pointer;
}


.profile-photo-preview {
    display: flex;

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

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    color: #116b3d;

    background: #e4f2e9;

    border-radius: 50%;

    font-size: 20px;
}


.profile-photo-content {
    position: relative;

    z-index: 1;
}


.profile-photo-content label {
    display: block;

    margin-bottom: 3px;

    color: #116b3d;

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

    cursor: pointer;
}


.profile-photo-content p {
    margin: 0 0 3px;

    color: #78877f;

    font-size: 9px;
}


.profile-photo-content small {
    color: #9aa69f;

    font-size: 8px;
}


.profile-photo-upload input[type="file"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}


/* =========================================================
   Remember / Terms
   ========================================================= */

.remember-me {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin: 2px 0 20px;

    color: #718078;

    font-size: 9px;

    line-height: 1.5;

    cursor: pointer;
}


.remember-me input {
    width: 14px;
    height: 14px;

    margin: 0;

    flex-shrink: 0;

    accent-color: #116b3d;
}


.terms-check {
    margin-top: 3px;
}


.terms-check a {
    color: #116b3d;

    text-decoration: none;
}


/* =========================================================
   Submit Button
   ========================================================= */

.auth-submit {
    display: flex;

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

    gap: 10px;

    width: 100%;
    height: 42px;

    color: #ffffff;

    background: #116b3d;

    border: 1px solid #116b3d;

    border-radius: 6px;

    font-family: inherit;

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.auth-submit:hover {
    background: #0b5631;

    transform: translateY(-1px);
}


.auth-submit span {
    font-size: 15px;
}


/* =========================================================
   Switch Message
   ========================================================= */

.switch-message {
    margin-top: 20px;

    padding-top: 18px;

    color: #87948e;

    border-top: 1px solid #edf1ee;

    text-align: center;

    font-size: 9px;
}


.switch-message button {
    padding: 0;

    color: #116b3d;

    background: none;

    border: 0;

    font-family: inherit;

    font-size: 9px;
    font-weight: 650;

    cursor: pointer;
}


/* =========================================================
   Publisher Note
   ========================================================= */

.publisher-note {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 18px;

    padding: 15px 17px;

    background: #f4f9f6;

    border: 1px solid #dcebe2;

    border-radius: 8px;
}


.publisher-note-icon {
    display: flex;

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

    flex-shrink: 0;

    width: 23px;
    height: 23px;

    color: #116b3d;

    background: #dff1e6;

    border-radius: 50%;

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


.publisher-note strong {
    display: block;

    margin-bottom: 3px;

    color: #315442;

    font-size: 10px;
}


.publisher-note p {
    margin: 0;

    color: #77857e;

    font-size: 9px;

    line-height: 1.55;
}


/* =========================================================
   Back
   ========================================================= */

.auth-back {
    margin-top: 22px;

    text-align: center;
}


.auth-back a {
    color: #116b3d;

    font-size: 9px;

    text-decoration: none;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 600px) {

    .user-auth-container {
        width: min(100% - 30px, 500px);
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 480px) {

    .user-auth-page {
        padding: 40px 0 50px;
    }


    .user-auth-container {
        width: calc(100% - 24px);
    }


    .user-auth-header h1 {
        font-size: 24px;
    }


    .auth-panel {
        padding: 23px 18px 25px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .category-options {
        grid-template-columns: 1fr;
    }


    .profile-photo-upload {
        padding: 11px;
    }

} 