﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    font-family: "Galdeano", sans-serif;
    background: url("/images/contentbg2.png") no-repeat center center fixed;
    background-size: 100% 100%;
    color: #e8eaf0;
}

.welcome {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

.welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    pointer-events: none;
}

.welcome::after {
    content: "";
    position: absolute;
    width: 45rem;
    height: 45rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(118, 125, 145, 0.08), transparent 65%);
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(92%, 38rem);
    padding: 3rem 2rem;
    text-align: center;
}

.welcome-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #777e8d;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
}

.welcome-kicker::before,
.welcome-kicker::after {
    content: "";
    width: 2rem;
    height: 1px;
    background: #3a3f49;
}

.welcome-title {
    margin: 0;
    color: #f0f1f4;
    font-size: clamp(3rem, 9vw, 5.75rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-shadow:
            0 2px 0 #1b1e24,
            0 12px 40px rgba(0, 0, 0, 0.65);
}

.welcome-title-accent {
    display: block;
    margin-top: 0.35rem;
    color: #a4aab7;
    font-size: 0.22em;
    font-weight: 700;
    letter-spacing: 0.65rem;
    line-height: 1;
    text-transform: uppercase;
}

.welcome-description {
    max-width: 30rem;
    margin: 1.75rem auto 0;
    color: #858b97;
    font-size: 0.875rem;
    line-height: 1.75;
}

.welcome-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 24rem);
    margin: 2rem 0;
}

.welcome-divider::before,
.welcome-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
            to right,
            transparent,
            #30343c
    );
}

.welcome-divider::after {
    background: linear-gradient(
            to left,
            transparent,
            #30343c
    );
}

.welcome-divider-icon {
    width: 0.4rem;
    height: 0.4rem;
    margin: 0 0.75rem;
    transform: rotate(45deg);
    background: #555c69;
}

.play-button,
.login-button,
.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 20rem);
    border-radius: 0.3rem;
    font: inherit;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0 auto;
}

.play-button {
    position: relative;
    height: 3.75rem;
    padding: 0 1.5rem;
    border: 1px solid #6a707b;
    background: linear-gradient(
            180deg,
            #3c414b 0%,
            #292d35 48%,
            #22262d 100%
    );
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.22rem;
    cursor: pointer;
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.08),
            0 0.75rem 2rem rgba(0,0,0,0.35);
    transition:
            transform 0.12s ease,
            border-color 0.12s ease,
            background 0.12s ease,
            box-shadow 0.12s ease;
}

.play-button::before {
    content: "";
    position: absolute;
    inset: 0.2rem;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.2rem;
    pointer-events: none;
}

.play-button:hover {
    transform: translateY(-2px);
    border-color: #858b97;
    background: linear-gradient(
            180deg,
            #484e59 0%,
            #30353e 48%,
            #282c34 100%
    );
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.1),
            0 1rem 2.5rem rgba(0,0,0,0.45);
}

.play-button:active {
    transform: translateY(0);
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.25rem;
}

.login-input {
    width: min(100%, 20rem);
    height: 2.75rem;
    padding: 0 0.875rem;
    background: #1a1d23;
    border: 1px solid #3a3f49;
    border-radius: 0.3rem;
    outline: none;
    color: #e8eaf0;
    font: inherit;
    font-size: 0.75rem;
    box-sizing: border-box;
    transition: border-color 0.12s ease;
}

.login-input:focus {
    border-color: #6a707b;
}

.login-input::placeholder {
    color: #737985;
}

.login-button {
    height: 3.75rem;
    padding: 0 1.5rem;
    border: 1px solid #6a707b;
    background: linear-gradient(
            180deg,
            #3c414b 0%,
            #292d35 48%,
            #22262d 100%
    );
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.22rem;
    cursor: pointer;
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.08),
            0 0.75rem 2rem rgba(0,0,0,0.35);
    transition:
            transform 0.12s ease,
            border-color 0.12s ease,
            background 0.12s ease,
            box-shadow 0.12s ease;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #858b97;
    background: linear-gradient(
            180deg,
            #484e59 0%,
            #30353e 48%,
            #282c34 100%
    );
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.1),
            0 1rem 2.5rem rgba(0,0,0,0.45);
}

.login-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.forgot-password {
    text-align: center;
    font-size: 0.6875rem;
}

.forgot-password a {
    color: #858b97;
    text-decoration: none;
    transition: color 0.12s ease;
    cursor: pointer;
}

.forgot-password a:hover {
    color: #c4c9d0;
    text-decoration: underline;
}

.google-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1.25rem;
}

.google-login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    color: #555b67;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.google-login-divider::before,
.google-login-divider::after {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: #292d35;
}

.google-login-button {
    gap: 0.625rem;
    height: 3rem;
    padding: 0 1rem;
    background: #17191d;
    border: 1px solid #353941;
    color: #cdd0d6;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition:
            background 0.12s ease,
            border-color 0.12s ease,
            color 0.12s ease;
}

.google-login-button:hover {
    background: #1d2025;
    border-color: #555b66;
    color: #fff;
}

.google-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.welcome-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    color: #3f444e;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    pointer-events: none;
}

.forgot-password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.forgot-password-modal {
    background: #17191d;
    border: 1px solid #353941;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 28rem;
    width: 90%;
    color: #e8eaf0;
    max-height: 90vh;
    overflow-y: auto;
}

.forgot-password-modal h2 {
    margin: 0 0 1rem 0;
    color: #f0f1f4;
    font-size: 1.25rem;
}

.forgot-password-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forgot-password-modal input {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    background: #101216;
    border: 1px solid #292d35;
    border-radius: 0.3rem;
    outline: none;
    color: #e8eaf0;
    font: inherit;
    font-size: 0.75rem;
    box-sizing: border-box;
}

.forgot-password-modal input:focus {
    border-color: #596170;
}

.forgot-password-modal button {
    padding: 0.6875rem 0.875rem;
    background: #292d35;
    border: 1px solid #454b57;
    border-radius: 0.3rem;
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.forgot-password-modal button:hover:not(:disabled) {
    background: #3a424f;
    border-color: #5a6270;
}

.forgot-password-modal button:disabled {
    opacity: 0.5;
    cursor: default;
}

.forgot-password-modal button[type="submit"] {
    background: linear-gradient(180deg, #3c414b 0%, #292d35 48%, #22262d 100%);
    border-color: #6a707b;
}

.forgot-password-modal button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(180deg, #484e59 0%, #30353e 48%, #282c34 100%);
    border-color: #858b97;
}
