/* ========================================
   ACERSMP REGISTER PAGE
   Uses login.css as the shared theme
======================================== */

.password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.password-heading label {
    margin-bottom: 0;
}

.password-toggle {
    padding: 2px 0;
    border: none;
    background: transparent;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.25s ease;
}

.password-toggle:hover {
    color: var(--blue-bright);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Keep the registration form spacing consistent */
#registerForm .form-group {
    margin-bottom: 18px;
}

#registerForm .login-button {
    margin-top: 2px;
}

#registerButton .button-text {
    flex: 1;
    text-align: center;
}

/* Registration card needs extra room for its fields */
.login-card:has(#registerForm) {
    max-width: 460px;
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Match the Login divider */
.login-card:has(#registerForm) .login-divider {
    margin: 22px 0;
}

/* Make the login link fill the card */
.login-card:has(#registerForm) > .register-button {
    width: 100%;
    padding: 0 14px;
}

/* Status message */
#formMessage.success {
    color: #80e6ad;
}

#formMessage.error {
    color: #ff9999;
}

/* Mobile */
@media (max-width: 520px) {
    .login-card:has(#registerForm) {
        padding: 28px 23px;
    }

    #registerForm .form-group {
        margin-bottom: 16px;
    }
}

@media (max-width: 380px) {
    .login-card:has(#registerForm) {
        padding: 25px 19px;
    }
}/* ========================================
   ACERSMP REGISTER THEME
   Inherits login.css
======================================== */

/* ========================================
   REGISTER CARD
======================================== */

.login-card {
    max-width: 460px;
    padding: 34px 36px;

    background: rgba(12, 23, 39, 0.96);
    border: 1px solid rgba(138, 207, 255, 0.16);
    border-radius: 22px;

    box-shadow:
        0 25px 80px #00000055,
        0 0 45px #168cff08,
        inset 0 1px 0 #ffffff08;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Subtle cyan highlight */

.login-card::before {
    left: 10%;
    right: 10%;

    background: linear-gradient(
        90deg,
        transparent,
        #59caff90,
        transparent
    );
}

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

.logo-wrapper {
    margin-bottom: 21px;
}

.login-logo-frame {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 7px;

    border: 1px solid #59caff75;
    border-radius: 17px;

    background: linear-gradient(
        145deg,
        #142c47,
        #091321
    );

    box-shadow:
        0 0 28px #168bff20,
        inset 0 1px 0 #ffffff12;
}

.login-logo-frame:hover {
    border-color: var(--blue-bright);

    box-shadow:
        0 0 32px #168bff35,
        inset 0 1px 0 #ffffff18;
}

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

.login-card h1 {
    font-size: clamp(27px, 5vw, 32px);
    letter-spacing: -1.2px;
}

.login-card h1 span {
    color: var(--blue);
    text-shadow: 0 0 22px #59caff18;
}

.login-description {
    margin-top: 10px;
    margin-bottom: 25px;

    font-size: 12px;
    line-height: 1.7;
}

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

#registerForm {
    width: 100%;
}

#registerForm .form-group {
    margin-bottom: 17px;
}

#registerForm .form-group label {
    margin-bottom: 8px;

    color: #dbe8f7;
    font-size: 12px;
    font-weight: 700;
}

#registerForm .form-group input {
    width: 100%;
    height: 47px;
    padding: 0 14px;

    color: var(--text);
    background: #081321;

    border: 1px solid rgba(135, 180, 220, 0.18);
    border-radius: 10px;

    font-size: 12px;

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

#registerForm .form-group input::placeholder {
    color: #596d83;
    opacity: 1;
}

#registerForm .form-group input:hover {
    border-color: #59caff55;
}

#registerForm .form-group input:focus {
    border-color: var(--blue);
    background: #091726;

    box-shadow:
        0 0 0 3px #59caff17,
        0 0 18px #59caff08;

    outline: none;
}

/* Browser autofill */

#registerForm .form-group input:-webkit-autofill,
#registerForm .form-group input:-webkit-autofill:hover,
#registerForm .form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);

    box-shadow: 0 0 0 1000px var(--input) inset;

    transition: background-color 9999s ease-in-out 0s;
}

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

.password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 8px;
}

.password-heading label {
    margin-bottom: 0 !important;
}

/* ========================================
   SHOW / HIDE PASSWORD BUTTON
======================================== */

.password-toggle {
    padding: 3px 0;

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

    border: none;
    border-radius: 4px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.password-toggle:hover {
    color: var(--blue-bright);
    text-shadow: 0 0 12px #59caff35;
}

.password-toggle:active {
    color: #ffffff;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 4px;
}

/* ========================================
   REGISTRATION STATUS MESSAGE
======================================== */

#formMessage {
    margin-bottom: 12px;

    color: #ff9999;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#formMessage:empty {
    display: none;
}

/* ========================================
   CREATE ACCOUNT BUTTON
======================================== */

#registerButton {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 0 16px;

    color: #04111d;
    background: linear-gradient(
        120deg,
        #91e4ff,
        #49b9ff
    );

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 5px 22px #36aaff20;

    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

#registerButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px #36aaff45;
    filter: brightness(1.05);
}

#registerButton:active {
    transform: translateY(0) scale(0.985);
}

#registerButton:disabled {
    opacity: 0.65;
    cursor: not-allowed;

    transform: none;
    filter: none;
    box-shadow: none;
}

#registerButton:disabled::before {
    display: none;
}

#registerButton .button-text {
    text-align: left;
}

#registerButton .button-arrow {
    flex: 0 0 auto;
    font-size: 18px;
}

/* ========================================
   DIVIDER
======================================== */

.login-divider {
    margin: 21px 0;

    color: #71839a;
    font-size: 10px;
    letter-spacing: 1px;
}

/* ========================================
   SIGN IN LINK
======================================== */

.login-card > a.register-button {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;

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

    color: #dce9f8;
    background: rgba(255, 255, 255, 0.015);

    border: 1px solid rgba(135, 180, 220, 0.20);
    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s var(--ease);
}

.login-card > a.register-button:hover {
    color: var(--blue-bright);
    background: #59caff0d;
    border-color: #59caff65;

    transform: translateY(-2px);
}

.login-card > a.register-button:active {
    transform: translateY(0) scale(0.985);
}

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

.terms-text {
    max-width: 320px;
    margin: 20px auto 0;

    color: #74869b;
    font-size: 10px;
    line-height: 1.8;
}

/* ========================================
   HEADER BRAND
   Keep the existing login theme
======================================== */

.login-header .brand {
    text-decoration: none;
}

.login-header .header-logo {
    object-fit: contain;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 768px) {
    .login-card {
        max-width: 440px;
        padding: 32px;
    }
}

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

@media (max-width: 520px) {
    .login-page {
        padding: 18px 15px 30px;
    }

    .login-card {
        max-width: 100%;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .logo-wrapper {
        margin-bottom: 19px;
    }

    .login-logo-frame {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        padding: 6px;
        border-radius: 16px;
    }

    .login-card h1 {
        font-size: 28px;
    }

    .login-description {
        margin-bottom: 23px;
        font-size: 12px;
    }

    #registerForm .form-group {
        margin-bottom: 16px;
    }

    #registerForm .form-group input {
        height: 46px;
    }

    .login-divider {
        margin: 20px 0;
    }

    .terms-text {
        margin-top: 18px;
    }
}

/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 380px) {
    .login-card {
        padding: 25px 18px;
    }

    .login-card h1 {
        font-size: 26px;
    }

    #registerForm .form-group input {
        padding: 0 11px;
        font-size: 12px;
    }

    #registerButton {
        padding: 0 13px;
    }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .login-logo-frame,
    #registerButton,
    .password-toggle,
    .login-card > a.register-button {
        animation: none !important;
        transition: none !important;
    }

    .login-logo-frame,
    .login-logo-frame:hover,
    #registerButton:hover,
    .login-card > a.register-button:hover {
        transform: none;
    }
}
