@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


:root {
    --bg: #070B14;
    --bg2: #0C1324;

    --panel: rgba(20, 30, 50, 0.68);
    --glass: rgba(255, 255, 255, 0.07);

    --blue: #3DBBFF;
    --blue2: #6ED8FF;

    --red: #E50914;

    --text: #ffffff;
    --text2: #B5C5DA;

    --border: rgba(255, 255, 255, 0.12);

    --shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}


body {
    font-family: 'Inter', sans-serif;

    background:
        radial-gradient(
            circle at top,
            #1a3d74 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            #0b3d73 0%,
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #04070d,
            #060b14,
            #03060d
        );

    color: var(--text);

    min-height: 100vh;

    overflow-x: hidden;
}


/* Background stars */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    background-image:
        radial-gradient(
            white 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    opacity: 0.22;

    pointer-events: none;

    z-index: -3;
}


/* Background glow */

body::after {
    content: "";

    position: fixed;

    inset: -25%;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(44, 180, 255, 0.20),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 15%,
            rgba(255, 30, 80, 0.15),
            transparent 25%
        ),
        radial-gradient(
            circle at 60% 70%,
            rgba(80, 120, 255, 0.16),
            transparent 35%
        );

    filter: blur(140px);

    opacity: 0.9;

    pointer-events: none;

    z-index: -2;
}


/* Nebula */

.auth-nebula {
    position: fixed;

    inset: 0;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(70, 170, 255, 0.12),
            transparent 45%
        ),
        url("../images/nebula.png") center top / cover no-repeat;

    opacity: 0.35;

    pointer-events: none;

    z-index: -1;

    animation: authNebulaMove 40s ease-in-out infinite alternate;
}


@keyframes authNebulaMove {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }

}


/* Page */

.auth-page {

    min-height: 100vh;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 20px;
}


/* Card */

.auth-card {

    width: 100%;

    max-width: 460px;

    padding: 38px;

    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 22px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        var(--shadow),
        0 0 45px rgba(61, 187, 255, 0.08);

    animation: authCardIn 0.7s ease;
}


@keyframes authCardIn {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* Logo */

.auth-logo-link {

    display: block;

    text-align: center;

    margin-bottom: 25px;
}


.auth-logo {

    width: auto;

    max-width: 230px;

    height: 65px;

    object-fit: contain;

    filter:
        drop-shadow(0 0 12px rgba(61, 187, 255, 0.4))
        drop-shadow(0 0 28px rgba(61, 187, 255, 0.18));

    transition: transform 0.3s ease;
}


.auth-logo:hover {

    transform: scale(1.03);

}


/* Heading */

.auth-heading {

    text-align: center;

    margin-bottom: 28px;
}


.auth-heading h1 {

    margin: 0 0 8px;

    font-size: 28px;

    font-weight: 800;

    letter-spacing: -0.5px;
}


.auth-heading p {

    margin: 0;

    color: var(--text2);

    font-size: 14px;

    line-height: 1.6;
}


/* Form */

#register-form {

    width: 100%;
}


/* Inputs */

.input-group {

    margin-bottom: 18px;
}


.input-group label {

    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;
}


.input-group label span {

    color: #7f91a8;

    font-weight: 400;
}


.input-group input {

    width: 100%;

    height: 50px;

    padding: 0 15px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    outline: none;

    background: rgba(5, 12, 24, 0.72);

    color: #ffffff;

    font-family: 'Inter', sans-serif;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.input-group input::placeholder {

    color: #718198;
}


.input-group input:focus {

    border-color: var(--blue);

    background: rgba(5, 15, 30, 0.9);

    box-shadow:
        0 0 0 3px rgba(61, 187, 255, 0.10),
        0 0 18px rgba(61, 187, 255, 0.12);
}


/* Button */

.auth-button {

    width: 100%;

    height: 52px;

    margin-top: 5px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #3DBBFF,
            #1676ff
        );

    color: #ffffff;

    font-family: 'Inter', sans-serif;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.4px;

    cursor: pointer;

    box-shadow:
        0 0 15px rgba(61, 187, 255, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}


.auth-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(61, 187, 255, 0.38),
        0 8px 25px rgba(0, 0, 0, 0.25);
}


.auth-button:active {

    transform: translateY(0);

}


.auth-button:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

}


/* Message */

.auth-message {

    min-height: 20px;

    margin: 5px 0 12px;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


.auth-message.success {

    color: #69d84f;
}


.auth-message.error {

    color: #ff6570;
}


/* Footer */

.auth-footer {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 25px;

    color: var(--text2);

    font-size: 13px;
}


.auth-footer a {

    color: var(--blue);

    text-decoration: none;

    font-weight: 700;
}


.auth-footer a:hover {

    color: var(--blue2);

}


/* Back home */

.back-home {

    display: block;

    margin-top: 22px;

    text-align: center;

    color: #718198;

    text-decoration: none;

    font-size: 12px;

    transition: color 0.25s ease;
}


.back-home:hover {

    color: var(--blue);

}


/* Mobile */

@media (max-width: 600px) {

    .auth-page {

        padding: 25px 15px;
    }


    .auth-card {

        padding: 28px 22px;

        border-radius: 18px;
    }


    .auth-logo {

        height: 55px;

        max-width: 200px;
    }


    .auth-heading h1 {

        font-size: 24px;
    }


    .input-group input {

        height: 48px;
    }

}