@font-face {
    font-family: "Inter Variable";
    src:  url("./fonts/Inter-Variable.woff2") format("woff2-variations"),
          url("./fonts/Inter-Variable.woff") format("woff-variations"),
          url("./fonts/Inter-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-stretch: 50% 150%;
    font-display: swap;
}


*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

:root {
    --c-black: #1a1a1a;
    --c-grey-50: #f0f0f0;
    --c-grey-100: #c8c8c8;
    --c-grey-200: #a0a0a0;
    --c-grey-400: #6e6e73;
    --c-grey-500: #505053;
    --c-white: #fff;
    --c-yellow: #e4d00a;
    --c-red: #fd504a;

    --c-opacity: 0.85;

    --c-background: var(--c-grey-50);
    --c-foreground: var(--c-white);
    --c-text-body: var(--c-black);
    --c-text-muted: var(--c-grey-400);
    --c-text-on-image: var(--c-white);
    --c-link-underline-hover: var(--c-yellow);
    --c-btn-bg-primary: var(--c-yellow);
    --c-btn-text-primary: var(--c-grey-500);
    --c-btn-bg-secondary: var(--c-white);
    --c-btn-border-secondary: var(--c-grey-100);
    --c-btn-border-secondary-hover: var(--c-grey-200);
    --c-input-border: var(--c-grey-100);
    --c-input-border-hover: var(--c-grey-200);
    --c-input-border-focus: var(--c-yellow);
    --c-input-border-error: var(--c-red);
    --c-input-text: var(--c-grey-400);
    --c-icon-muted: var(--c-grey-200);
    --c-icon-hover: var(--c-grey-400);

    --shadow-input: inset 0px 3px 3px -1px #0000000a;
}

input, button {
    font: inherit;
}

html {
    font-size: 100%;
}

body {
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-background);
    font-family: "Inter Variable";
    font-size: 0.833rem;
    color: var(--c-text-body);
}

.container {
    display: flex;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.image-wrapper,
.signup-wrapper {
    height: 600px;
    width: 500px;
    background-color: var(--c-foreground);
}

.image-wrapper {
    flex: 2;
    background-image: url(img/background.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

.photo-credit {
    position: absolute;
    text-align: left;
    font-size: 0.75rem;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    color: var(--c-text-on-image);
}

.photo-credit a {
    color: var(--c-text-on-image);
    text-decoration: underline;
}

.photo-credit a:hover {
    text-decoration: underline var(--c-link-underline-hover);
}

.signup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-section {
    width: 320px;
}

.signup-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.signup-options {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    margin-top: 28px;
    margin-bottom: 14px;
}

.signup-options button {
    background-color: var(--c-btn-bg-secondary);
    padding: 6px;
    border: 1px solid var(--c-btn-border-secondary);
    transition: all 0.15s ease-in-out;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.fa-apple {
    font-size: 15px;
    margin-right: -1px;
}

.signup-options button:hover {
    border: 1px solid var(--c-btn-border-secondary-hover);
}

a {
    text-decoration: none;
}

.signup-or {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.form-content {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}


input {
    background: linear-gradient(to bottom, #00000005, transparent);
    color: var(--c-input-text);
    padding: 6px;
    border: 1px solid var(--c-input-border);
    box-shadow: var(--shadow-input);
    border-radius: 8px;
    transition: border 0.15s ease-in-out;
    font-weight: 400;
    padding-left: 10px;
    padding-right: 10px;
}

form.submitted input:invalid {
    border: 1px solid var(--c-input-border-error);
}

#password {
    padding-right: 26px;
}

input:hover {
    border: 1px solid var(--c-input-border-hover);
}

input:focus {
    outline: none;
    border: 1px solid var(--c-input-border-focus);
    box-shadow: 0px 0px 0px 0.6px #c8c8c8;
}

label {
    font-weight: 500;
}

.toggle i {
    float: right;
    position: relative;
    margin-top: -26px;
    margin-right: 8px;
    z-index: 2;
    cursor: pointer;
    color: var(--c-icon-muted);
}

.toggle i:hover {
    color: var(--c-icon-hover);
}

.hover-effect-input {
    border: 1px solid var(--c-input-border-hover);
}

.password-hint {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-top: -4px;
}

.signup-button {
    display: grid;
    margin-top: 20px;
}

.signup-button button {
    position: relative;
    padding: 7px;
    border: none;
    background-color: var(--c-btn-bg-primary);
    box-shadow: 0px 1.5px 1.5px 0px #51515133;
    border-radius: 8px;
    cursor: pointer;
    color: var(--c-btn-text-primary);
    font-weight: 600;
}

.signup-button button:hover {
    background-color: rgb(from var(--c-btn-bg-primary) r g b / var(--c-opacity));
}

.login {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.login p, .login a {
    font-size: 0.75rem;
}

.login a {
    margin-left: 4px;
    color: var(--c-text-body);
    font-weight: 400;
    text-decoration: underline;
    transition: all 0.15s ease-in-out;
}

.login a:hover {
    text-decoration: underline var(--c-link-underline-hover);
}