/* ============================================================
   UNIPAY Public Pages — Landing Page & Login
   ============================================================ */

/* ---------- Shared variables ---------- */
:root {
    --up-primary: #1a56db;
    --up-primary-dark: #1341b3;
    --up-accent: #06b6d4;
    --up-gradient-start: #0f172a;
    --up-gradient-end: #1e3a8a;
    --up-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --up-radius: 12px;
}

/* ---------- Navbar ---------- */
.unipay-navbar {
    background: linear-gradient(135deg, var(--up-gradient-start) 0%, var(--up-gradient-end) 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.unipay-navbar .navbar-brand img {
    /* SVG logos already have correct colors for their context */
}

/* ---------- Footer ---------- */
.unipay-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 1.25rem 0;
    margin-top: auto;
}

/* ---------- Hero Section ---------- */
.up-hero {
    background: linear-gradient(135deg, var(--up-gradient-start) 0%, var(--up-gradient-end) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.up-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.up-hero-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.15);
    color: var(--up-accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.25rem;
}

.up-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.up-hero-title span {
    color: var(--up-accent);
}

.up-hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 520px;
    margin-bottom: 2rem;
}

.up-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-up-primary {
    background: var(--up-primary);
    border: none;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--up-radius);
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.btn-up-primary:hover {
    background: var(--up-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-up-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--up-radius);
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-up-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* ---------- Stats Strip ---------- */
.up-stats {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 0;
}

.up-stat-item {
    text-align: center;
}

.up-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--up-primary);
    line-height: 1;
}

.up-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* ---------- Feature Cards ---------- */
.up-features {
    background: #f8fafc;
    padding: 4rem 0;
}

.up-features-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.up-features-subtitle {
    color: #64748b;
    margin-bottom: 2.5rem;
}

.up-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--up-radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--up-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.up-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.up-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.up-card-icon.bills    { background: #eff6ff; color: #2563eb; }
.up-card-icon.salary   { background: #f0fdf4; color: #16a34a; }
.up-card-icon.security { background: #faf5ff; color: #7c3aed; }

.up-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.up-card-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Coming Soon Banner ---------- */
.up-coming-soon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(26, 86, 219, 0.08) 100%);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--up-radius);
}

.up-coming-soon-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.up-coming-soon-badge {
    flex-shrink: 0;
    background: var(--up-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.up-coming-soon-text {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.up-coming-soon-text strong {
    color: #1e40af;
}

/* ---------- LOGIN PAGE ---------- */
.up-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--up-gradient-start) 0%, var(--up-gradient-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.up-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.up-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.up-login-logo {
    display: block;
    height: 40px;
    margin: 0 auto 1.5rem;
    filter: none;
}

.up-login-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 0.25rem;
}

.up-login-subheading {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1.75rem;
}

.up-form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.up-form-control {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.up-form-control:focus {
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
    background: #fff;
}

.up-form-control.is-invalid {
    border-color: #ef4444;
}

.up-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
}

.up-btn-signin {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--up-primary) 0%, var(--up-primary-dark) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.up-btn-signin:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.up-btn-signin:active {
    transform: none;
    opacity: 1;
}

.up-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
}

.up-login-error ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: #dc2626;
}

.up-login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
}
