/* Glassmorphism Auth UI & Text Alignment Fixes */
body.glassmorphism-ui {
    background: linear-gradient(135deg, #0f172a 0%, #3b0764 100%);
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.glassmorphism-ui .page-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.glassmorphism-ui .standalone-card {
    background: rgb(255 255 255 / 8%) !important;
    backdrop-filter: blur(30px) !important;
    border: 1px solid rgb(255 255 255 / 15%) !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgb(0 0 0 / 30%) !important;
    color: #fff !important;
    padding: 40px !important;
    max-width: 480px;
    width: 100%;
    margin: auto;
    text-align: left;
    overflow: visible;
}
.glassmorphism-ui .signup-wizard-card {
    max-width: 600px;
}
.glassmorphism-ui .card-header-area {
    text-align: center;
    margin-bottom: 30px;
}
.glassmorphism-ui .standalone-card .card-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(#fff, #e2e8f0);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.glassmorphism-ui .standalone-card h1 {
    text-align: center;
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc !important;
}
.glassmorphism-ui .standalone-card .subtitle {
    text-align: center;
    margin-bottom: 0;
    font-size: 1rem;
    opacity: 0.85;
    color: #f8fafc !important;
}
.glassmorphism-ui .standalone-card p,
.glassmorphism-ui .standalone-card label {
    color: #f8fafc !important;
    text-align: left;
}
.glassmorphism-ui .standalone-card .plan-combine-info p,
.glassmorphism-ui .standalone-card .signup-no-cc {
    text-align: center !important;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}
.glassmorphism-ui .alert {
    border-radius: 12px;
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
    backdrop-filter: blur(10px);
}
.glassmorphism-ui .alert-danger {
    background: rgb(239 68 68 / 20%) !important;
    border: 1px solid rgb(239 68 68 / 30%) !important;
    color: #fca5a5 !important;
}
.glassmorphism-ui .alert-info {
    background: rgb(59 130 246 / 20%) !important;
    border: 1px solid rgb(59 130 246 / 30%) !important;
    color: #93c5fd !important;
}
.glassmorphism-ui .alert-success {
    background: rgb(16 185 129 / 20%) !important;
    border: 1px solid rgb(16 185 129 / 30%) !important;
    color: #6ee7b7 !important;
}
.glassmorphism-ui .standalone-card .form-control {
    background: rgb(255 255 255 / 12%) !important;
    border: 1px solid rgb(255 255 255 / 20%) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 15px;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s;
}
.glassmorphism-ui .standalone-card .form-control::placeholder {
    color: rgb(255 255 255 / 60%) !important;
}
.glassmorphism-ui .standalone-card .form-control:focus {
    background: rgb(255 255 255 / 20%) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 4px rgb(129 140 248 / 25%) !important;
    outline: none;
}
.glassmorphism-ui .standalone-card .btn-brand,
.glassmorphism-ui .standalone-card .btn-success {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}
.glassmorphism-ui .standalone-card .btn-block {
    display: block;
    width: 100%;
}
.glassmorphism-ui .standalone-card .btn-lg {
    padding: 14px;
    font-size: 1.15rem;
}
.glassmorphism-ui .standalone-card .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}
.glassmorphism-ui .standalone-card .btn-brand:hover,
.glassmorphism-ui .standalone-card .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(0 0 0 / 25%) !important;
}
.glassmorphism-ui .auth-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}
.glassmorphism-ui .standalone-card .btn-default {
    background: rgb(255 255 255 / 8%) !important;
    border: 1px solid rgb(255 255 255 / 15%) !important;
    color: #e2e8f0 !important;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s, border-color 0.3s;
    font-weight: 500;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.glassmorphism-ui .standalone-card .btn-default:hover {
    background: rgb(255 255 255 / 15%) !important;
    border-color: rgb(255 255 255 / 30%) !important;
    transform: translateY(-1px);
    color: #fff !important;
}
.glassmorphism-ui .auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
}
.glassmorphism-ui .auth-remember-row > div {
    display: flex;
    align-items: center;
}
.glassmorphism-ui .auth-remember-row label {
    margin: 0 0 0 5px;
    cursor: pointer;
    font-weight: 400;
}
.glassmorphism-ui .auth-remember-row input[type="checkbox"] {
    margin: 0;
}
.glassmorphism-ui .auth-remember-row a {
    color: #a5b4fc !important;
    text-decoration: none;
    font-weight: 600;
}
.glassmorphism-ui .auth-remember-row a:hover {
    color: #c7d2fe !important;
    text-decoration: underline;
}
.glassmorphism-ui .auth-or-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgb(255 255 255 / 60%);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.glassmorphism-ui .auth-or-divider .line {
    flex: 1;
    height: 1px;
    background: rgb(255 255 255 / 15%);
}
.glassmorphism-ui .auth-or-divider span {
    margin: 0 15px;
}
.glassmorphism-ui .auth-bottom-link {
    margin-top: 25px;
    font-size: 0.95rem;
    color: rgb(255 255 255 / 70%);
    text-align: center;
}
.glassmorphism-ui .auth-bottom-link a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline;
}
.glassmorphism-ui .trust-signals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}
.glassmorphism-ui .trust-signal {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgb(0 0 0 / 20%);
    padding: 6px 14px;
    border-radius: 20px;
    color: #cbd5e1 !important;
}
.glassmorphism-ui .form-group {
    text-align: left;
    margin-bottom: 20px;
}
.glassmorphism-ui .form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #e2e8f0 !important;
    display: block;
}
.glassmorphism-ui .magic-link-form {
    margin-top: 15px;
    display: none;
}
.glassmorphism-ui .magic-link-form.is-visible {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.glassmorphism-ui .signup-step-panel .step-panel-title {
    color: #fff !important;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Fixes for checkboxes in terms & newsletter */
.glassmorphism-ui .checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.glassmorphism-ui .checkbox input[type="checkbox"] {
    margin-top: 4px;
}

/* Select2 Glassmorphism Overrides — matches dark auth theme */
.glassmorphism-ui .select2-container--default .select2-selection--single {
    background: rgb(255 255 255 / 10%) !important;
    border: 1px solid rgb(255 255 255 / 20%) !important;
    color: #e2e8f0 !important;
}
.glassmorphism-ui .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}
.glassmorphism-ui .select2-dropdown {
    background: rgb(15 23 42 / 95%) !important;
    border: 1px solid rgb(255 255 255 / 15%) !important;
    color: #e2e8f0 !important;
}
.glassmorphism-ui .select2-results__option {
    color: #e2e8f0 !important;
}
.glassmorphism-ui .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgb(99 102 241 / 30%) !important;
    color: #fff !important;
}
.glassmorphism-ui .select2-container--default .select2-results__option--selected {
    background: rgb(99 102 241 / 15%) !important;
}
.glassmorphism-ui .select2-search--dropdown .select2-search__field {
    background: rgb(255 255 255 / 10%) !important;
    border-color: rgb(255 255 255 / 20%) !important;
    color: #e2e8f0 !important;
}
