* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    min-height: 100vh;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;

    background: #0f1117;

    color: #e6e6e6;

    line-height: 1.6;
}


/* Header */

header {
    max-width: 900px;

    margin: 50px auto 40px;

    padding: 0 20px;

    text-align: center;
}


.header-content h1 {
    color: white;

    font-size: 3rem;

    margin-bottom: 15px;
}


.header-content p {
    color: #a9adb8;

    font-size: 1.1rem;
}


/* Divider */

hr {
    max-width: 1100px;

    height: 1px;

    margin: 30px auto;

    border: none;

    background: #292d38;
}


/* Authentication */

.auth-container {
    max-width: 450px;

    margin: 40px auto;

    padding: 0 20px;
}


.auth-card {
    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 18px;

    padding: 35px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.auth-card:hover {
    transform: translateY(-6px);

    border-color: #3d7cff;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}


/* Form */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 20px;
}


.form-group label {
    color: white;

    font-weight: 600;
}


.form-group input {
    padding: 12px 15px;

    background: #0f1117;

    border: 1px solid #272c38;

    border-radius: 10px;

    color: white;

    font-size: 1rem;

    outline: none;

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


.form-group input:focus {
    border-color: #3d7cff;

    background: #141822;
}


/* Button */

.button {
    width: 100%;

    padding: 12px 18px;

    margin-top: 10px;

    background: #2563eb;

    border: none;

    border-radius: 10px;

    color: white;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.button:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}


/* Messages */

.error {
    margin-bottom: 20px;

    padding: 12px 15px;

    background: #3f1d1d;

    border: 1px solid #7f1d1d;

    border-radius: 10px;

    color: #fecaca;

    text-align: center;
}


/* Login/Register link */

.account-link {
    margin-top: 25px;

    text-align: center;

    color: #a9adb8;
}


.account-link a {
    color: #6ea8fe;

    text-decoration: none;

    font-weight: 600;
}


.account-link a:hover {
    text-decoration: underline;
}


/* Footer */

footer {
    text-align: center;

    color: #8b8f99;

    padding: 30px 20px;
}


/* Same domweb scroll animation */

.page-load,
.auth-card {
    opacity: 0;

    transform: translateY(40px) scale(0.98);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.page-load.show,
.auth-card.show {
    opacity: 1;

    transform: translateY(0) scale(1);
}


/* Mobile */

@media(max-width:600px) {

    .header-content h1 {
        font-size: 2.2rem;
    }


    .auth-card {
        padding: 25px;
    }

}

/* =========================
   Terms Checkbox
========================= */


.terms-checkbox {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin: 20px 0 25px;

    color: #a9adb8;

    font-size: 0.9rem;

    line-height: 1.5;

}



.terms-checkbox input {

    appearance: none;

    width: 18px;

    height: 18px;

    flex-shrink: 0;

    margin-top: 3px;

    background: #0f1117;

    border: 1px solid #272c38;

    border-radius: 5px;

    cursor: pointer;

    position: relative;

    transition:

        background .2s ease,

        border-color .2s ease,

        box-shadow .2s ease;

}



.terms-checkbox input:hover {

    border-color: #3d7cff;

}



.terms-checkbox input:checked {

    background: #3d7cff;

    border-color: #3d7cff;

    box-shadow:

        0 0 0 4px rgba(61,124,255,.15);

}



.terms-checkbox input:checked::after {

    content: "✓";

    position: absolute;

    left: 3px;

    top: -1px;

    color: white;

    font-size: 14px;

    font-weight: 700;

}



.terms-checkbox label {

    cursor: pointer;

}



/* =========================
   Animated Links
========================= */


.terms-checkbox a,
.account-link a {

    color: #60a5fa;

    text-decoration: none;

    font-weight: 600;

    position: relative;

    display: inline-block;

}



.terms-checkbox a::after,
.account-link a::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -3px;

    width: 0;

    height: 2px;

    background:

        linear-gradient(
            90deg,
            #3d7cff,
            #60a5fa
        );

    border-radius: 10px;

    transform: translateX(-50%);

    transition:

        width .3s ease;

}



.terms-checkbox a:hover,
.account-link a:hover {

    color: #93c5fd;

}



.terms-checkbox a:hover::after,
.account-link a:hover::after {

    width: 100%;

}