.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

/* Keep the registration card above background effects */
.login-card {
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 2px;
    border-radius: 22px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        var(--gold-dim),
        #d2f0d3,
        #0f3c1c,
        var(--gold-hi),
        var(--gold-dim)
    );
    animation: borderRotate 5s linear infinite;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

/* Allow the page to scroll when the form is taller than the screen */
html,
body {
    min-height: 100%;
    height: auto;
}

body {
    margin: 0;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    .login-wrapper {
        min-height: 100vh;
        padding: 20px 13px;
        align-items: flex-start;
    }

    .login-card-inner {
        padding: 30px 22px;
    }
}
.register-card {
    width: 100%;
    /* max-width: 500px; */
    margin: 20px auto;
}

.register-card-inner {
    padding: 36px 38px;
}

.brand-logo {
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin: 0 auto 22px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f1f5f1;
}

.register-heading {
    margin-bottom: 25px;
    text-align: center;
}

.register-form .form-label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--champagne);
}

.register-form .mb-3 {
    margin-bottom: 18px !important;
}

.register-form .input-group-custom {
    display: flex;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 59, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.register-form .input-group-custom:focus-within {
    border-color: var(--gold-hi);
    box-shadow: 0 0 0 3px rgba(201, 154, 59, 0.12);
}

.register-form .form-control {
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--parchment);
    font-size: 14px;
    box-shadow: none;
}

.register-form .form-control::placeholder {
    color: #8f8777;
}

.register-form .form-control:focus {
    background: transparent;
    color: var(--parchment);
    box-shadow: none;
}

.register-form .input-icon {
    display: flex;
    align-items: center;
    color: var(--gold);
    flex-shrink: 0;
}

.register-form .input-icon i {
    font-size: 17px;
}

.register-form .country-code {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 12px;
    border-right: 1px solid rgba(201, 154, 59, 0.2);
    color: var(--gold-hi);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: var(--gold);
}

.password-toggle:hover {
    color: var(--gold-hi);
}

.register-form .btn-gold {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.register-form .btn-gold:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.referral-info {
    padding: 11px 13px;
    border: 1px solid rgba(201, 154, 59, 0.25);
    border-radius: 9px;
    background: rgba(201, 154, 59, 0.07);
    color: var(--champagne);
    font-size: 13px;
}

.register-footer {
    margin-top: 24px;
    color: #a99e88;
    font-size: 13px;
    text-align: center;
}

.register-footer a {
    color: var(--gold-hi);
    font-weight: 700;
    text-decoration: none;
}

.register-footer a:hover {
    color: var(--parchment);
    text-decoration: underline;
}

.register-security {
    margin-top: 18px;
    color: #a99e88;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .register-card-inner {
        padding: 30px 22px;
    }

    .register-heading {
        margin-bottom: 22px;
    }
}

@media (max-width: 350px) {
    .register-card-inner {
        padding: 26px 16px;
    }

    .register-form .country-code {
        padding: 0 9px;
    }

    .register-form .form-control {
        padding-right: 9px;
        padding-left: 9px;
    }
}
