/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

* {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

#root,
#__next {
    isolation: isolate;
}

/* Custom CSS */
:root {
    --dark: #151122;
    --dark-secondary: #282334;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", "Noto Color Emoji";
}

a {
    text-decoration: none;
    color: inherit;
}

.base-layout {
    background-color: #f1f5f9;
    color: var(--dark);
}

.base-panel {
    padding-top: 4rem;
    /* py-16 */
    padding-bottom: 4rem;
    padding-left: 2.5rem;
    /* px-10 */
    padding-right: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.landing-links .active {
    color: var(--dark-secondary);
    font-weight: bold;
}

.loader {
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.signup-btn .loader,
.submit-button .loader {
    width: 16px;
    height: 16px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.reset-tw,
.reset-tw * {
    all: revert !important;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    background-color: #f1f5f9;
    /* bg-slate-100 */
    color: #0f172a;
    /* fallback color */
}

.layout-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: block;
}

.logo-img {
    margin-left: auto;
    margin-right: auto;
    width: 5rem;
    /* w-20 */
    border-radius: 1rem;
    /* rounded-2xl */
}

.logo-title {
    margin-top: 0.75rem;
    /* mt-3 */
    text-align: center;
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    /* font-bold */
    color: #6B7280;
    /* text-gray-500 */
}

.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-link {
    margin: 0.5rem 0.75rem;
    /* my-2 mx-3 */
    text-align: center;
}

.nav-link.inactive {
    color: #6B7280;
    /* text-gray-500 */
}

.nav-link.active {
    /* Use this to style active route links */
    font-weight: bold;
    color: #000;
    /* You can change to primary color */
}

.store-heading {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    /* font-bold */
    text-align: center;
    color: #6B7280;
    /* text-gray-500 */
    margin-bottom: 1rem;
    /* mb-4 */
}


.store-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.store-link {
    margin: 0.75rem 0.5rem;
    /* mx-2 my-3 */
}

.store-badge {
    width: 12rem;
    /* w-48 */
}

.landing-container {
    width: 100%;
}

.margin-top-10 {
    margin-top: 2.5rem;
}

.margin-top-16 {
    margin-top: 4rem;
}

.form-section {
    margin-top: 4rem;
}

.form-heading {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

.form-description {
    margin: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
    color: #4B5563;
    /* gray-600 */
}

.success-notice {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #6366F1;
    /* indigo-500 */
    text-align: center;
}

.success-text {
    color: white;
}

.email-field {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #9CA3AF;
    background-color: #fff;
}

.error-text {
    color: #f87171;
    /* red-400 */
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.signup-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    color: white;
    border-radius: 0.5rem;
    border: 1px solid #1D4ED8;
    /* blue-700 */
    background-color: #2563EB;
    /* blue-600 */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup-btn:hover {
    background-color: #1D4ED8;
}

.signup-btn:active {
    background-color: #1E40AF;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-items: center;
    padding: 16px;
    margin-top: 32px;
    flex-direction: column;
}

.footer-text {
    flex: 0 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    text-align: center;
}

.container {
    width: 100%;
}

.margin-top-10 {
    margin-top: 2.5rem;
}

.form-container {
    width: 100%;
    margin-top: 4rem;
}

.success-banner {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #6366F1;
    /* Indigo */
    text-align: center;
}

.success-text {
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.form-heading {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-top: 0.75rem;
}

.form-label {
    color: #4B5563;
    font-weight: 500;
}

.form-input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #9CA3AF;
    /* gray-400 */
    background-color: #ffffff;
}

textarea.form-input {
    resize: vertical !important; /* ensure override */
    overflow-x: hidden;
    max-width: 100%;
}

.form-error {
    color: #f87171;
    /* red-400 */
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.submit-button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    color: white;
    border-radius: 0.5rem;
    border: 1px solid #1D4ED8;
    background-color: #2563EB;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #1D4ED8;
}

.submit-button:active {
    background-color: #1E40AF;
}

/* PAGES */
.landing-links {
    margin-top: 2.5rem; /* mt-10 */
}

.landing-panel {
    padding-top: 2rem !important;  /* !py-8 */
    padding-bottom: 2rem !important;
    padding-left: 0.75rem !important;  /* !px-3 */
    padding-right: 0.75rem !important;
    width: 100%;
    margin-top: 2.5rem; /* mt-10 */
}

.landing-title {
    font-size: 3rem; /* text-5xl */
    font-weight: 700; /* font-bold */
    text-align: center; /* text-center */
    margin-bottom: 2.5rem; /* mb-10 */
}

.landing-content {
    margin-left: 0.75rem;  /* mx-3 */
    margin-right: 0.75rem;
    font-size: 1.25rem; /* text-xl */
    color: #4B5563; /* text-gray-600 */
}

.dark .landing-content {
    color: #9CA3AF; /* dark:text-gray-400 */
}


@media (min-width: 640px) {
    .nav-container {
        flex-direction: row;
    }

    .store-links {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .base-panel {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: auto;
        margin-top: 2.5rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
    }

    .landing-panel {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
        max-width: 768px; /* md:max-w-screen-md */
    }

    .container {
        width: 100%;
        max-width: 768px;
    }

    .landing-container {
        width: 100%;
        max-width: 768px;
    }
}



@media (min-width: 1024px) {
    .landing-panel {
        width: 100%; /* lg:w-8/12 */
        max-width: 1024px;
    }
}

/**
 * Dark Mode
 * */
@media (prefers-color-scheme: dark) {
    .base-layout {
        background-color: var(--dark);
        color: #f1f5f9;
    }

    .base-panel {
        background-color: #1f1b2c;
        border-color: #282334;
    }

    .landing-links .active {
        color: white;
    }

    .landing-content {
        color: #e4e4e4;
    }

    .layout-wrapper {
        background-color: var(--dark);
        color: #f1f5f9;
        /* dark:text-slate-100 */
    }

    .logo-img {
        border-width: 2px;
        border-color: var(--dark-secondary);
    }

    .logo-title {
        /* color: #8b80a8; */
        color: #ffffff;
    }

    .store-heading {
        color: #D1D5DB;
    }

    .form-description {
        color: #9CA3AF;
    }

    .email-field {
        background-color: #1F2937;
        border: none;
        color: #e2e2e2;
    }

    .signup-btn {
        border: none;
    }

    .form-label {
        color: #9CA3AF;
    }

    .form-input {
        background-color: #1F2937;
        border: none;
        color: #e2e2e2;
    }

    .submit-button {
        border: none;
    }

    .nav-link.active {
        color: #fff;
    }
}

