/* YourGlovebox — auth pages (login / OTP / password / support) */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
    --gb-bright-blue: #0069A9;
    --gb-medium-blue: #001C42;
    --gb-dark-blue: #000C2C;
    --gb-grey-blue: #2F4463;
    --gb-green: #329806;
    --gb-yellow: #FFAB02;
    --gb-red: #980606;
    --gb-white: #FFFFFF;
    --gb-muted: #6B7C93;
    --gb-surface: #FFFFFF;
    --gb-border: rgba(0, 28, 66, 0.1);
    --gb-shadow-lg: 0 24px 64px rgba(0, 12, 44, 0.35);
    --gb-display: "Outfit", "DM Sans", Arial, sans-serif;
    --gb-body: "DM Sans", Arial, sans-serif;
}

body.gb-auth {
    margin: 0;
    min-height: 100vh;
    font-family: var(--gb-body);
    color: var(--gb-medium-blue);
    background:
        radial-gradient(ellipse 70% 55% at 85% 10%, rgba(0, 105, 169, 0.5), transparent 60%),
        radial-gradient(ellipse 55% 45% at 10% 90%, rgba(255, 171, 2, 0.16), transparent 55%),
        linear-gradient(160deg, #001C42 0%, #000C2C 65%, #00040f 100%);
    background-attachment: fixed;
}

/* Centering shell */
body.gb-auth .gb-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Card */
.gb-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--gb-surface);
    border-radius: 24px;
    box-shadow: var(--gb-shadow-lg);
    overflow: hidden;
}

.gb-auth-logo {
    padding: 28px 28px 0;
    text-align: center;
}

.gb-auth-logo img {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.gb-auth-body {
    padding: 24px 28px 28px;
}

.gb-auth-title {
    margin: 0 0 4px;
    font-family: var(--gb-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gb-medium-blue);
}

.gb-auth-sub {
    margin: 0 0 22px;
    color: var(--gb-muted);
    font-size: 14.5px;
}

/* Inputs */
.gb-field {
    position: relative;
    margin-bottom: 14px;
}

.gb-field > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9AA8BA;
    font-size: 15px;
    pointer-events: none;
}

.gb-field input[type="text"],
.gb-field input[type="password"],
.gb-field input[type="email"],
.gb-field input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px 14px 44px;
    box-sizing: border-box;
    border: 1.5px solid var(--gb-border);
    border-radius: 14px;
    background: #F7FAFD;
    color: var(--gb-medium-blue);
    font-family: var(--gb-body);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.gb-field input::placeholder {
    color: #9AA8BA;
    font-weight: 400;
}

.gb-field input:focus {
    border-color: var(--gb-bright-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 105, 169, 0.12);
}

.gb-field-reveal {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9AA8BA;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.gb-field-reveal:hover {
    background: #EEF3F8;
    color: var(--gb-grey-blue);
}

/* OTP input */
.gb-field input.gb-otp-input {
    padding-left: 44px;
    letter-spacing: 0.35em;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    font-family: var(--gb-display);
}

/* Primary button */
.gb-auth-btn,
.gb-auth-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--gb-bright-blue), #004f80);
    color: #fff;
    font-family: var(--gb-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 105, 169, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gb-auth-btn:hover,
.gb-auth-card .btn-primary:hover {
    background: linear-gradient(145deg, #0078c2, var(--gb-bright-blue));
    box-shadow: 0 12px 28px rgba(0, 105, 169, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.gb-auth-btn:active,
.gb-auth-card .btn-primary:active {
    transform: translateY(0);
}

/* Alerts / errors */
.gb-auth-error {
    display: block;
    margin: 4px 0 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(152, 6, 6, 0.08);
    border: 1px solid rgba(152, 6, 6, 0.2);
    color: var(--gb-red) !important;
    font-size: 14px;
    font-weight: 600;
}

.gb-auth-card .alert {
    border-radius: 12px;
    font-size: 14px;
}

/* Secondary links */
.gb-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.gb-auth-links a {
    color: var(--gb-bright-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.gb-auth-links a:hover {
    color: var(--gb-medium-blue);
    text-decoration: underline;
}

/* Footer note under card */
.gb-auth-foot {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-align: center;
}

.gb-auth-foot a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
}

.gb-auth-foot a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Generic content card for other auth-master pages (support, password, etc.) */
body.gb-auth .card {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--gb-shadow-lg);
}

@media (max-width: 480px) {
    .gb-auth-card {
        border-radius: 20px;
    }

    .gb-auth-body {
        padding: 20px 20px 24px;
    }

    .gb-auth-logo {
        padding: 24px 20px 0;
    }
}
