/* omniahst.com/billing/css/login.css */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:        #0b0e14;
    --surface:   #111520;
    --border:    #1e2535;
    --accent:    #0ea5e9;
    --accent2:   #38bdf8;
    --text:      #e2e8f0;
    --muted:     #64748b;
    --error:     #f87171;
    --radius:    10px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Radial glow behind card */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(14,165,233,0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 16px;
    animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo / Branding */
.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    margin-bottom: 12px;
    box-shadow: 0 0 28px rgba(14,165,233,0.35);
}

.login-brand .brand-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-brand h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1;
}

.login-brand h1 span {
    color: var(--accent);
}

.login-brand p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* Card */
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow:
        0 0 0 1px rgba(14,165,233,0.06),
        0 24px 60px rgba(0,0,0,0.5);
}

/* Field groups */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-wrap svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    stroke: var(--muted);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
}

.field input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
    color: #2d3748;
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.field input:focus + svg,
.field-input-wrap:focus-within svg {
    stroke: var(--accent);
}

/* Error */
.error-msg {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--error);
    font-size: 13px;
    margin-bottom: 18px;
}

.error-msg svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    stroke: var(--error);
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Submit button */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 4px 20px rgba(14,165,233,0.3);
    margin-top: 4px;
}

button[type="submit"]:hover {
    opacity: 0.9;
    box-shadow: 0 6px 28px rgba(14,165,233,0.45);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Footer note */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 24px 18px;
    }
    .login-brand h1 {
        font-size: 22px;
    }
}
