@import url('/css/colours.css');
@import url('/css/fonts.css');
@import url('/css/loader.css');

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100dvh;
    margin: 0;

    display: flex;
    flex-direction: column;

    font-family: var(--de-font);
    background-color: var(--de-cream);
    color: var(--de-coffee);
}

.screen {
    flex: 1;
    min-height: 0;

    display: grid;
    place-items: center;

    padding: 20px;
    text-align: center;
}

.brand {
    display: inline-block;

    margin-bottom: 28px;

    color: inherit;
    text-decoration: none;

    font-weight: 700;
    letter-spacing: 0.08em;
}

h1 {
    margin: 0 0 14px;

    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
}

p {
    margin: 0 0 24px;

    line-height: 1.6;
}

.text-link {
    color: inherit;
}

/* GATE */

.gate-logo {
    display: block;
    width: min(70vw, 380px);
    height: auto;
    margin: 0 auto 28px;
}

/* GATE ACTIONS */

.gate-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.gate-button {
    min-width: 108px;
    padding: 11px 18px;

    border: 1px solid var(--de-coffee);

    font-family: var(--de-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;

    color: var(--de-coffee);
    background: transparent;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.gate-button:hover {
    background-color: var(--de-coffee);
    color: var(--de-cream);
}


/* INSTAGRAM */

.gate-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 22px;

    font-size: 19px;
    color: var(--de-coffee);
    text-decoration: none;

    opacity: 0.75;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.gate-instagram:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* =========================================================
   JOIN PAGE
   ========================================================= */

.panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.join-logo-link {
    display: block;
    line-height: 0;
}

.join-logo {
    display: block;
    width: 68vw;
    max-width: 360px;
    height: auto;
}

.join-title {
    margin: 3dvh 0 0;
    font-size: clamp(28px, 8vw, 36px);
    font-weight: 500;
    line-height: 1;
    color: var(--de-coffee);
}

.join-intro {
    margin: 2dvh 0 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.join-form {
    width: 86vw;
    max-width: 360px;
    margin-top: 3dvh;
}

.form-row {
    display: block;
}

.form-field {
    width: 100%;
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 13px;

    border: 1px solid var(--de-coffee);
    border-radius: 0;

    background: transparent;
    color: var(--de-coffee);

    font-family: var(--de-font);
    font-size: 15px;

    outline: none;
}

.form-field input:focus {
    border-width: 2px;
    padding: 11px 12px;
}

.form-check {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-top: 4px;

    font-size: 12px;
    line-height: 1.45;
}

.form-check input {
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.form-check span {
    flex: 1;
}

.form-check a {
    color: var(--de-coffee);
}

.join-submit {
    width: 100%;
    margin-top: 22px;
    box-sizing: border-box;
}

.join-login {
    margin: 22px 0 0;

    font-size: 13px;
    text-align: center;
}

.join-login a {
    color: var(--de-coffee);
}

.form-errors {
    width: 86vw;
    max-width: 360px;

    margin-top: 20px;
    padding: 12px 14px;
    box-sizing: border-box;

    border: 1px solid var(--de-coffee);

    font-size: 12px;
    line-height: 1.4;
}

.form-errors p {
    margin: 0;
}

.form-errors p + p {
    margin-top: 6px;
}


/* =========================================================
   MOBILE LAYOUT
   ========================================================= */

@media (max-width: 767px) {

    .join-screen {
        min-height: 100dvh;
        padding: 0;

        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .join-screen .panel {
        width: 100%;
        padding: 6dvh 0 4dvh;
    }

    .join-logo {
        width: 60vw;
        max-width: none;
    }

    .join-title {
        margin-top: 2.8dvh;
        font-size: 29px;
    }

    .join-intro {
        margin-top: 1.8dvh;
        font-size: 14px;
    }

    .join-form {
        width: 86vw;
        max-width: none;
        margin-top: 3.2dvh;
    }

    .form-field {
        margin-bottom: 12px;
    }

    .form-field label {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .form-field input {
        height: 40px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .form-field input:focus {
        padding: 7px 9px;
    }

    .form-check {
        gap: 8px;
        margin-top: 6px;

        font-size: 11px;
        line-height: 1.4;
    }

    .join-submit {
        margin-top: 18px;
        padding: 11px 16px;
    }

    .join-login {
        margin-top: 20px;
        font-size: 12px;
    }

}


/* =========================================================
   TABLET + DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    .join-logo {
        width: 360px;
    }

    .join-title {
        margin-top: 26px;
        font-size: 36px;
    }

    .join-intro {
        margin-top: 18px;
        font-size: 15px;
    }

    .join-form {
        width: 360px;
        margin-top: 28px;
    }

    .form-errors {
        width: 360px;
    }

}

/* ========================================
   MEMBER PROFILE
======================================== */

.profile-screen {
    align-items: flex-start;
    padding: 70px 20px;
}

.profile-panel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.profile-title {
    margin: 0 0 36px;
    font-size: 32px;
    letter-spacing: 0.08em;
}


/* PHOTO */

.profile-photo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid var(--brown, #512018);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 44px;
    font-weight: 700;

    background: rgba(255,255,255,0.18);
}

.profile-photo-button {
    position: absolute;
    right: 0;
    bottom: 4px;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    border: 1px solid var(--brown, #512018);
    background: #fff;
    color: var(--brown, #512018);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
}


/* IDENTITY */

.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    margin-bottom: 32px;
}

.profile-identity strong {
    font-size: 22px;
}

.profile-identity span {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.65;
}

.profile-identity small {
    margin-top: 5px;
    opacity: 0.55;
}


/* FORM */

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.profile-form .form-field {
    margin: 0;
}

.profile-form .form-field label {
    display: block;
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-form input {
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;

    padding: 0 16px;

    border: 1px solid var(--brown, #512018);
    border-radius: 6px;

    background: rgba(255,255,255,0.12);
    color: inherit;

    font: inherit;
}

.profile-form input:focus {
    outline: 2px solid rgba(81,32,24,0.18);
    outline-offset: 2px;
}


/* PRIVATE DOB NOTE */

.profile-form .form-help {
    display: block;
    margin-top: 7px;

    font-size: 12px;
    opacity: 0.6;
}


/* SAVE */

.profile-form .gate-button {
    align-self: center;
    margin-top: 10px;
    min-width: 180px;
}


/* MOBILE */

@media (max-width: 600px) {

    .profile-screen {
        padding: 40px 18px;
    }

    .profile-title {
        font-size: 27px;
        margin-bottom: 28px;
    }

    .profile-photo-wrap,
    .profile-avatar {
        width: 130px;
        height: 130px;
    }
}