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


html,
body {
    min-height: 100%;
}


body {

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: #f8fafc;

    color: #172033;

}


a {
    text-decoration: none;
}


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

.register-page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    padding: 40px 20px 60px;

}


/* =========================================
   CONTAINER
   ========================================= */

.register-container {

    width: 100%;

    max-width: 520px;

}


/* =========================================
   LOGO
   ========================================= */

.register-logo {

    display: flex;

    justify-content: center;

    margin-bottom: 30px;

}


.register-logo img {

    display: block;

    width: 165px;

    height: auto;

}


/* =========================================
   HEADING
   ========================================= */

.register-heading {

    text-align: center;

    margin-bottom: 28px;

}


.form-label {

    color: #64748b;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


.register-heading h1 {

    margin-top: 10px;

    color: #111827;

    font-size: 34px;

    line-height: 1.2;

    letter-spacing: -0.035em;

}


.register-heading p {

    max-width: 440px;

    margin: 10px auto 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;

}


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

#register-form {

    display: flex;

    flex-direction: column;

    gap: 18px;

    padding: 30px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.06);

}


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

.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.form-group > label {

    display: flex;

    justify-content: space-between;

    color: #172033;

    font-size: 13px;

    font-weight: 700;

}


.label-note {

    color: #94a3b8;

    font-size: 11px;

    font-weight: 500;

}


/* =========================================
   INPUT
   ========================================= */

.form-group input {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #dbe2ea;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-size: 14px;

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

}


.form-group input::placeholder {

    color: #a1aab8;

}


.form-group input:focus {

    border-color: #111827;

    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.07);

}


/* =========================================
   USERNAME
   ========================================= */

.username-input-wrapper {

    position: relative;

}


.username-input-wrapper input {

    padding-right: 42px;

}


/* =========================================
   LOADER
   ========================================= */

.username-loader {

    position: absolute;

    top: 50%;

    right: 14px;

    width: 16px;

    height: 16px;

    margin-top: -8px;

    border: 2px solid #e2e8f0;

    border-top-color: #111827;

    border-radius: 50%;

    display: none;

    animation:
        username-spin 0.7s linear infinite;

}


@keyframes username-spin {

    to {

        transform: rotate(360deg);

    }

}


/* =========================================
   STATUS
   ========================================= */

.field-status {

    min-height: 17px;

    font-size: 11px;

    font-weight: 700;

}


.field-status.available {

    color: #333333;

}


.field-status.taken {

    color: #D94305;

}


.field-status.checking {

    color: #64748b;

}


/* =========================================
   USERNAME WARNING
   ========================================= */

.username-warning {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    padding: 10px 12px;

    border: 1px solid #F4510B;

    border-radius: 8px;

    background: #fff3ed;

    color: #D94305;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.6;

}


.warning-icon {

    flex-shrink: 0;

    color: #D94305;

    font-size: 14px;

}


.username-warning strong {

    color: #D94305;

    font-weight: 800;

}


/* =========================================
   PASSWORD
   ========================================= */

.password-field {

    position: relative;

}


.password-field input {

    padding-right: 65px;

}


.password-toggle {

    position: absolute;

    top: 50%;

    right: 12px;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: #596579;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

}


.password-toggle:hover {

    color: #111827;

}


/* =========================================
   PASSWORD STRENGTH
   ========================================= */

.password-strength {

    display: flex;

    align-items: center;

    gap: 10px;

}


.strength-bar {

    width: 80px;

    height: 4px;

    overflow: hidden;

    border-radius: 5px;

    background: #e8ebef;

}


#strength-fill {

    display: block;

    width: 0%;

    height: 100%;

    background: #111827;

    transition:
        width 0.2s ease;

}


#strength-text {

    color: #8a94a3;

    font-size: 11px;

}


/* =========================================
   TERMS
   ========================================= */

.terms-row {

    display: flex;

    align-items: flex-start;

    gap: 9px;

}


.terms-row input {

    width: 16px;

    height: 16px;

    flex-shrink: 0;

    margin-top: 2px;

    accent-color: #111827;

}


.terms-row label {

    color: #64748b;

    font-size: 12px;

    line-height: 1.6;

}


.terms-row a {

    color: #111827;

    font-weight: 700;

}


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

.submit-button {

    width: 100%;

    height: 50px;

    border: 0;

    border-radius: 8px;

    background: #111827;

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

}


.submit-button:hover {

    background: #000000;

}


.submit-button:disabled {

    opacity: 0.55;

    cursor: not-allowed;

}


/* =========================================
   LOGIN
   ========================================= */

.login-link {

    margin: 0;

    text-align: center;

    color: #64748b;

    font-size: 13px;

}


.login-link a {

    color: #111827;

    font-weight: 800;

}


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

@media (max-width: 600px) {

    .register-page {

        padding: 30px 15px 45px;

    }


    .register-logo img {

        width: 145px;

    }


    .register-heading h1 {

        font-size: 29px;

    }


    #register-form {

        padding: 22px 18px;

    }

}


/* =========================================
   USERNAME VALIDATION STATUS
   ========================================= */

#username-status.status-success {

    color: #333333 !important;

    font-weight: 600;

}


#username-status.status-error {

    color: #D94305 !important;

    font-weight: 600;

}
/* Verify Email page logo */

.verify-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
    object-fit: contain;
}
/* ==========================================
   LOGIN PAGE
   ========================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 20px 40px;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.login-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 34px;
    object-fit: contain;
}

.login-heading {
    text-align: center;
    color: #0f172a;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 8px;
}

.login-subheading {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin: 0 0 30px;
}

.login-form {
    width: 100%;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-field input::placeholder {
    color: #94a3b8;
}

.login-field input:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

/* Password */

.login-password-wrapper {
    position: relative;
}

.login-password-wrapper input {
    padding-right: 70px;
}

.login-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.login-password-toggle:hover {
    color: #000000;
}

/* Forgot password */

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -8px;
    margin-bottom: 22px;
}

.forgot-password a {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Login button */

.login-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.login-submit:hover {
    opacity: 0.88;
}

.login-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Message */

.login-message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.5;
}

.login-message.error {
    display: block;
    color: #D94305;
    background: #fff3ed;
    border: 1px solid #F4510B;
}

.login-message.success {
    display: block;
    color: #333333;
    background: #f5f5f5;
    border: 1px solid #cccccc;
}

/* Create account */

.login-register {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
    font-size: 14px;
}

.login-register a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
}

.login-register a:hover {
    text-decoration: underline;
}

/* Mobile */

@media (max-width: 600px) {

    .login-page {
        padding: 45px 18px 30px;
    }

    .login-logo {
        width: 160px;
        margin-bottom: 28px;
    }

    .login-heading {
        font-size: 29px;
    }

    .login-subheading {
        font-size: 14px;
    }
}
