@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

/**
* Custom Sign Up and Login
*/

:root {
    --bg-color: #f7f9fa;
    --default-color: #111827;
    --gray-color: #e5e7eb;
    --accent-color: #2154de;
    --accent-color-dark: #2041b0;
}

* {
    box-sizing: border-box !important;
    font-family: "Geist", sans-serif !important;
    font-size: 1rem;
}

body {
    color: var(--default-color);
    background-color: var(--bg-color);
}

#wrapper {
    margin: 0 auto;
    width: 552px;
    max-width: 100%;
    padding: 0 12px;
    padding-top: 100px;
    background: transparent;

    display: flex;
    flex-direction: column;

    & .content {
        max-width: 100%;
        background-color: #fff;
        box-shadow: 0px 1px 0 rgba(0,0,0,.08);
        border: 1px solid #e5e7eb;
        border-radius: .5rem;
        padding: 3rem;
        margin: 0;
        margin-bottom: 12px;
        text-align: center;

        display: flex;
        flex-direction: column;
        row-gap: 12px;

        @media (max-width: 768.99px) {
            padding: 1.5rem;
        }
    }

    h1, h2 {
        font-family: "Geist", sans-serif;
        text-transform: capitalize;
    }

    h1 {
        font-size: 2rem;
        font-weight: bold;

        /* Fallback color for older browsers */
        color: oklch(51.1% .262 276.966);

        /* Apply the gradient as a background image */
        background-image: linear-gradient(to right, oklch(55.8% .288 302.321), oklch(51.1% .262 276.966));

        /* Clip the background to the text area only */
        -webkit-background-clip: text;
        background-clip: text;

        /* Make the text transparent so the background is visible */
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    h2 {
        font-size: 0.9rem;
    }
}

.clear {
    width: auto !important;
}

/* Header */

#header {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 100%;
    height: 64px;
    padding: 0;
    margin: 0;
    padding: 0 10px;
    background-color: #fff;
    border-bottom: 1px solid var(--default-color);
    box-shadow: 0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;
}

#header a#logo_img {
    position: relative;
    width: 110px;
    height: 65px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--default-color);

    img {
        display: none;
    }

    &::before {
        content: 'Bankrolls';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        font-size: 1.5rem;

        display: flex;
        align-items: center;
    }
}

#header #menu {
    all: unset;
    list-style: none;

    & li {
        all: unset;
        display: inline-block;
    }

    & li a {
        display: inline-block;
        font-size: .875rem;
        padding: 8px 16px;
        height: 34px;
        line-height: 1;
        border-radius: .375rem;
        text-shadow: none;
        font-weight: 600;
    }

    & li a.active {
        display: inline-block;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        box-shadow: 0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a,inset 0 1px 0 0 rgba(255,255,255,.1),inset 0 -1px 0 0 rgba(0,0,0,.1);
        border: 1px solid white;
        text-shadow: none;

        transition: all 0.125s ease-in-out;
    }

    & li a.active:hover {
        transform: translateY(-2px);
    }
}

/* Forms */

fieldset.login {
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;

    & legend {
        display: none;
    }
}

table.login,
table.basic-table2 {
    width: 100%;

    & tbody {
        display: flex;
        flex-direction: column;
        row-gap: 8px;
    }

    & tr {
        position: relative;
        display: flex;
        flex-direction: column;
        row-gap: 8px;
    }

    & td {
        padding: 0;

        label,
        label strong {
            font-weight: normal;
            font-size: .85rem;
        }
    }

    input,
    select,
    textarea {
        padding: 14px 18px;
        border-radius: .375rem;
        border: 1px solid var(--gray-color);
        width: 100% !important;
        transition: all 0.015s;
        color: var(--default-color);

        &[type="text"]:focus,
        &[type="text"]:hover,
        &[type="password"]:focus,
        &[type="password"]:hover,
        &:focus ,
        &:hover {
            border: 1px solid var(--accent-color);
        }
    }
}

.basic-table2 {
    border-radius: 0;
    margin: 0;
    background: none;
    box-shadow: none;

    & td {
        all: unset;

        /* Signup username inner label */
        #username + label,
        #username + label + label {
            position: absolute;
            top: 0;
            right: 0;

            & * {
                font-size: .85rem;
            }
        }
    }

    & td:first-child {
        background: none;
        width: 100% !important;
        border: none;
        text-align: left;
    }

    & + .footer {
        margin-top: 8px;
    }
}

/* Signup error messages */

#signup-form table tr td label.error {
    position: relative;
    display: inline-block;
    text-align: right;
    width: 100%;
    margin-top: 2px;
}

/* Form buttons */

.btn.green,
.btn-submit.green {
    all: unset; /* form button resets */

    display: inline-block;
    padding: 12px 18px;
    font-size: 1.25rem;
    transition: all 0.015s ease-in-out;
    border: 1px solid var(--accent-color) !important;
    border-radius: .375rem;
    cursor: pointer;
    width: 100% !important;
    text-align: center;
    margin: 0 !important;

    &:hover {
        color: #fff;
        background: var(--accent-color-dark) !important;
        border: 1px solid var(--accent-color-dark) !important
    }
}

.btn.green {
    /* Links (e.g., signup button in login page) */
    color: var(--accent-color);
    background: transparent !important;
    border: 1px solid var(--accent-color) !important;
}


input[type="submit"].btn-submit {
    /* Form submit buttons */
    color: #fff;
    background: var(--accent-color);
}

/* Form alerts */

.textbox {
    display: flex;
    align-items: center;
    text-align: left;
}

/* Footer */

#footer {
    all: unset;

    max-width: 100%;
    margin-top: auto;
    margin-bottom: 20px;
    font-size: .875rem;
    line-height: 1.75rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 300;
}
