/* ==========================================
   MY TAP AUTHENTICATION PAGES
   Login, Register, and Setup
   ========================================== */

:root {
    --background-dark: #090b16;
    --background-purple: #22145c;

    --surface: #ffffff;
    --surface-soft: #f5f6fa;

    --text-dark: #171929;
    --text-muted: #6d7182;

    --purple: #6c4dff;
    --blue: #168dff;
    --pink: #e229d7;

    --border: #dde0eb;
    --error: #c62828;
}

/* ==========================================
   RESET
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

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

    padding: 40px 20px;

    color: var(--text-dark);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(108, 77, 255, 0.55),
            transparent 34%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(22, 141, 255, 0.28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--background-dark),
            var(--background-purple)
        );
}

/* ==========================================
   PAGE WRAPPER
   ========================================== */

.wrap {
    width: 100%;
    max-width: 440px;
}

/* ==========================================
   AUTH CARD
   ========================================== */

.card {
    width: 100%;

    padding: 34px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.42),
        0 0 50px rgba(108, 77, 255, 0.18);
}

/* ==========================================
   BRAND
   ========================================== */

.brand {
    margin-bottom: 24px;
    text-align: center;
}

.brand-logo-tile {
    width: 90px;
    height: 70px;

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

    margin: 0 auto 22px;
    padding: 8px;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 14px 32px rgba(33, 37, 70, 0.16);
}

.brand-logo-image {
    width: 74px;
    height: auto;

    display: block;
    object-fit: contain;
}

.brand h1 {
    margin: 0 0 10px;

    color: var(--text-dark);

    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.brand p {
    margin: 0;

    color: var(--text-muted);

    font-size: 16px;
    line-height: 1.6;
}

/* ==========================================
   FORM
   ========================================== */

form {
    display: grid;
    gap: 20px;
}

label {
    display: block;

    margin-bottom: 8px;

    color: #2e3141;

    font-size: 14px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 13px;

    color: var(--text-dark);
    background: var(--surface-soft);

    font: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--purple);
    background: white;

    box-shadow:
        0 0 0 4px rgba(108, 77, 255, 0.14);
}

input::placeholder,
textarea::placeholder {
    color: #9a9dac;
}

/* ==========================================
   PRIMARY BUTTON
   ========================================== */

button,
.button,
input[type="submit"] {
    width: 100%;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border: 0;
    border-radius: 14px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--blue)
        );

    box-shadow:
        0 14px 30px rgba(83, 70, 230, 0.3);

    font: inherit;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 36px rgba(83, 70, 230, 0.42);
}

button:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   LINKS AND FOOTER TEXT
   ========================================== */

a {
    color: var(--purple);

    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.actions,
.form-footer,
.auth-footer {
    margin-top: 24px;

    color: var(--text-muted);

    text-align: center;
    font-size: 14px;
}

/* ==========================================
   STATUS AND ERROR MESSAGES
   ========================================== */

.error,
.error-message,
#login-error,
#register-error,
#message {
    margin: 4px 0 0;
    padding: 12px 14px;

    border-radius: 11px;

    color: #9d1c1c;
    background: #fff0f0;

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

.success,
.success-message {
    padding: 12px 14px;

    border-radius: 11px;

    color: #176b39;
    background: #eafaf0;

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

/* Hide completely empty message containers */

.error:empty,
.error-message:empty,
#login-error:empty,
#register-error:empty,
#message:empty {
    display: none;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

    body {
        align-items: flex-start;

        padding: 24px 14px;
    }

    .card {
        padding: 30px 22px;

        border-radius: 22px;
    }

    .brand-logo-tile {
        width: 100px;
        height: 80px;
    }

    .brand-logo-image {
        width: 86px;
        height: 66px;
    }

    .brand h1 {
        font-size: 30px;
    }
}
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}
.button.secondary:last-child {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
    box-shadow: none;
}

.button.secondary:last-child:hover {
    background: rgba(108, 77, 255, 0.08);
}
.button.outline {
    margin-top: 22px;

    background: transparent;
    color: var(--purple);

    border: 2px solid var(--purple);

    box-shadow: none;
}

.button.outline:hover {
    background: rgba(108, 77, 255, 0.08);
    color: var(--purple);

    text-decoration: none;
}