/* Glamgro login — external stylesheet — 50/50 split, bg #6A20AB */
body {
    background: #6A20AB !important;
    margin: 0 !important;
}
.glamgro-login-page {
    min-height: 100vh;
    background: #6A20AB;
    display: flex;
    flex-direction: column;
    padding: 28px 40px 40px;
    position: relative;
    overflow-x: hidden;
}
.glamgro-brand {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.glamgro-brand:hover { color: #fff; }
.glamgro-login-container {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 20px 0 30px;
    gap: 0;
}
.glamgro-login-left {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 20px 30px;
}
.glamgro-login-left img {
    width: 100%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.22));
}
.glamgro-login-right {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
}
.glamgro-login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px 22px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.15);
}
.glamgro-login-card h2 {
    font-size: 27px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}
.glamgro-login-card h2 span {
    color: #8200ff;
}
.glamgro-login-card .glamgro-subtitle {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
    margin: 8px 0 22px;
    font-weight: 400;
    line-height: 1.5;
}
/* Input group — icon box + input */
.gl-field {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    height: 46px;
}
.gl-field:focus-within {
    border-color: #8200ff;
    box-shadow: 0 0 0 3px rgba(130,0,255,0.12);
}
.gl-field:focus-within.gl-field--password {
    border-color: #0b6bff;
    box-shadow: 0 0 0 3px rgba(11,107,255,0.12);
}
.gl-field__icon {
    width: 46px;
    min-width: 46px;
    background: #f1f5f9;
    border-right: 1.5px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.gl-field:focus-within .gl-field__icon {
    border-right-color: #8200ff;
}
.gl-field--password:focus-within .gl-field__icon {
    border-right-color: #0b6bff;
}
.gl-field__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.gl-field input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 14px;
    font-size: 13.8px;
    color: #0f172a;
    background: #fff;
    width: 100%;
    min-width: 0;
}
.gl-field input::placeholder { color: #64748b; }
.gl-field__eye {
    width: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    background: #fff;
    border: none;
    padding: 0;
    user-select: none;
}
.gl-field__eye svg { width: 18px; height: 18px; }
.gl-field__eye .eye-off { display: none; }
.gl-field__eye.show-pass .eye-on { display: none; }
.gl-field__eye.show-pass .eye-off { display: block; }
/* remember row */
.gl-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 2px 18px;
    gap: 12px;
}
.gl-remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #334155;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    user-select: none;
}
.gl-remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #8200ff;
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
}
.gl-remember-row a {
    font-size: 13.5px;
    color: #334155;
    text-decoration: none;
    font-weight: 400;
}
.gl-remember-row a:hover { color: #8200ff; text-decoration: underline; }
/* buttons */
.gl-btn-primary {
    width: 100%;
    height: 46px;
    background: #8200ff;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background .18s, transform .08s, box-shadow .18s;
    box-shadow: 0 6px 18px rgba(130,0,255,0.32);
}
.gl-btn-primary:hover { background: #6d00d6; box-shadow: 0 8px 22px rgba(130,0,255,0.38); }
.gl-btn-primary:active { transform: translateY(1px); }
.gl-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.gl-demo-btn {
    height: 38px;
    border: none;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .08s;
    white-space: nowrap;
    padding: 0 8px;
    line-height: 1;
}
.gl-demo-btn:hover { filter: brightness(0.92); color: #fff !important; }
.gl-demo-btn:active { transform: translateY(1px); }
.gl-demo-btn--super { background: #8200ff; }
.gl-demo-btn--admin { background: #ff7a00; }
.gl-demo-btn--business { background: #2b78ff; }
.gl-back-home {
    text-align: center;
    margin-top: 14px;
}
.gl-back-home a {
    font-size: 13.5px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
}
.gl-back-home a:hover { color: #8200ff; text-decoration: underline; }
/* validation */
.gl-field.is-invalid { border-color: #ef4444 !important; }
.invalid-feedback { font-size: 12px; }
@media (max-width: 1100px) {
    .glamgro-login-left img { max-width: 520px; }
}
@media (max-width: 991px) {
    .glamgro-login-page { padding: 22px 20px 30px; }
    .glamgro-login-container {
        flex-direction: column;
        justify-content: center;
        gap: 28px;
    }
    .glamgro-login-left,
    .glamgro-login-right {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
    }
    .glamgro-login-left img { max-width: 420px; }
    .glamgro-login-right { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 520px) {
    .glamgro-brand { font-size: 24px; }
    .glamgro-login-card { padding: 24px 18px 18px; border-radius: 16px; }
    .glamgro-login-card h2 { font-size: 23px; }
    .gl-demo-grid { grid-template-columns: 1fr; gap: 8px; }
    .gl-remember-row { flex-wrap: wrap; }
}

/* Centered auth pages — forgot password / verification / set up new password */
.glamgro-auth-page {
    min-height: 100vh;
    background: #6A20AB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    position: relative;
    overflow-x: hidden;
}
.glamgro-auth-brand {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    user-select: none;
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
}
.glamgro-auth-brand:hover { color: #fff; }
.gl-auth-card {
    background: #fff;
    border-radius: 28px;
    padding: 46px 50px 34px;
    width: 100%;
    max-width: 606px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.15);
}
.gl-auth-card h2 {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}
.gl-auth-subtitle {
    text-align: center;
    font-size: 17px;
    color: #64748b;
    margin: 12px 0 28px;
    line-height: 1.55;
}
.gl-auth-subtitle strong {
    color: #0f172a;
    font-weight: 500;
    word-break: break-word;
}
.gl-auth-card .gl-field { height: 58px; }
.gl-auth-card .gl-field input { font-size: 16px; }
.gl-auth-card .gl-btn-primary { height: 58px; font-size: 16px; }
.gl-auth-card .gl-field__icon {
    width: 56px;
    min-width: 56px;
    background: #fff;
}
.gl-auth-card .gl-field--password:focus-within,
.gl-auth-card .gl-field--password:focus-within .gl-field__icon { border-color: #8200ff; }
.gl-auth-card .gl-field--password:focus-within { box-shadow: 0 0 0 3px rgba(130,0,255,0.12); }
.gl-auth-card .gl-field__eye .eye-on { display: none; }
.gl-auth-card .gl-field__eye .eye-off { display: block; }
.gl-auth-card .gl-field__eye.show-pass .eye-on { display: block; }
.gl-auth-card .gl-field__eye.show-pass .eye-off { display: none; }

/* OTP verification */
.gl-otp-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 26px 0 18px;
}
.gl-otp-box {
    width: 52px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    padding: 0;
    -moz-appearance: textfield;
}
.gl-otp-box::-webkit-outer-spin-button,
.gl-otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gl-otp-box:focus {
    border-color: #8200ff;
    box-shadow: 0 0 0 3px rgba(130,0,255,0.12);
}
.gl-otp-grid.is-invalid .gl-otp-box { border-color: #ef4444; }
.gl-countdown {
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 4px 0 6px;
    letter-spacing: 0.02em;
}
.gl-resend-row {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin: 0 0 28px;
}
.gl-resend {
    background: none;
    border: none;
    padding: 0;
    color: #8200ff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.gl-resend:hover { text-decoration: underline; }
.gl-resend[disabled] { color: #94a3b8; cursor: not-allowed; text-decoration: none; }

@media (max-width: 520px) {
    .glamgro-auth-page { padding: 96px 16px 32px; justify-content: flex-start; }
    .glamgro-auth-brand { font-size: 30px; }
    .gl-auth-card { padding: 30px 20px 24px; border-radius: 20px; }
    .gl-auth-card h2 { font-size: 28px; }
    .gl-auth-subtitle { font-size: 15px; }
    .gl-otp-grid { gap: 6px; }
    .gl-otp-box { width: 43px; height: 46px; font-size: 17px; }
}
