/* Elegant Premium Auth Stylesheet */



:root {
    --auth-bg: #f8fafc;
    --auth-primary: #0f172a;
    --auth-primary-hover: #0f172a;
    --auth-primary-glow: rgba(2, 71, 138, 0.15);
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-border: rgba(226, 232, 240, 0.8);
    --auth-radius-lg: 24px;
    --auth-radius-md: 14px;

    /* Modern gradients */
    --gradient-primary: linear-gradient(135deg, #0af 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #0af 0%, #0ea5e9 100%);
    --gradient-admin: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --gradient-bank: linear-gradient(135deg, #047857 0%, #059669 100%);
    --gradient-coord: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    --gradient-agent: linear-gradient(135deg, #0af 0%, #0af 100%);
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Animated Blobs */
.auth-bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatBlob 22s infinite alternate ease-in-out;
}

.bg-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 71, 138, 0.22) 0%, rgba(30, 64, 175, 0.05) 70%);
    top: -100px;
    right: -100px;
}

.bg-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(2, 71, 138, 0.03) 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

.bg-blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(14, 165, 233, 0.02) 70%);
    top: 35%;
    left: 25%;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(60px, -80px) scale(1.1) rotate(180deg);
    }

    100% {
        transform: translate(-30px, 40px) scale(0.9) rotate(360deg);
    }
}

/* Auth Wrapper */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    z-index: 2;
}

/* Modern Glassmorphic Login/Selector Card */
.auth-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 10px 15px -3px rgba(15, 23, 42, 0.03),
        0 30px 60px -15px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: var(--auth-radius-lg);
    padding: 2.75rem 2.25rem;
    width: 100%;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--auth-radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2) 40%, rgba(2, 71, 138, 0.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Role Selector Grid in index.html */
.role-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 992px) {
    .role-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .role-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* Role Cards in index.html */
.role-card-modern {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.02),
        0 10px 15px -3px rgba(15, 23, 42, 0.03);
    border-radius: 20px;
    padding: 2.25rem 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.role-card-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.role-card-modern:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(2, 71, 138, 0.15);
    transform: translateY(-6px);
    box-shadow:
        0 20px 25px -5px rgba(2, 71, 138, 0.08),
        0 10px 10px -5px rgba(2, 71, 138, 0.03);
}

.role-card-modern.agent-card:hover::after {
    background: var(--gradient-agent);
}

.role-card-modern.admin-card:hover::after {
    background: var(--gradient-admin);
}

.role-card-modern.bank-card:hover::after {
    background: var(--gradient-bank);
}

.role-card-modern.coord-card:hover::after {
    background: var(--gradient-coord);
}

.role-icon-wrapper {
    width: 68px;
    height: 68px;
    background: rgba(2, 71, 138, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--auth-primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(2, 71, 138, 0.05);
}

.role-card-modern.agent-card .role-icon-wrapper {
    color: #0af;
    background: rgba(37, 99, 235, 0.05);
}

.role-card-modern.admin-card .role-icon-wrapper {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.role-card-modern.bank-card .role-icon-wrapper {
    color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.role-card-modern.coord-card .role-icon-wrapper {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

.role-card-modern.agent-card:hover .role-icon-wrapper {
    background: var(--gradient-agent);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.role-card-modern.admin-card:hover .role-icon-wrapper {
    background: var(--gradient-admin);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.role-card-modern.bank-card:hover .role-icon-wrapper {
    background: var(--gradient-bank);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.2);
}

.role-card-modern.coord-card:hover .role-icon-wrapper {
    background: var(--gradient-coord);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.role-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--auth-text-main);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.role-card-modern.agent-card:hover .role-title {
    color: #0af;
}

.role-card-modern.admin-card:hover .role-title {
    color: #0f172a;
}

.role-card-modern.bank-card:hover .role-title {
    color: #059669;
}

.role-card-modern.coord-card:hover .role-title {
    color: #7c3aed;
}

.role-desc {
    font-size: 0.825rem;
    color: var(--auth-text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Modern Input Groups */
.input-group-modern {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-control-modern {
    width: 100%;
    height: 58px;
    padding: 1.4rem 1rem 0.4rem 3rem;
    background: rgba(248, 250, 252, 0.75);
    border: 1px solid #e2e8f0;
    border-radius: var(--auth-radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--auth-text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.form-control-modern-select {
    padding-top: 1.4rem;
    appearance: none;
    -webkit-appearance: none;
}

.form-control-modern:focus {
    background: #ffffff;
    border-color: var(--auth-text-main);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.form-control-modern:focus~.input-icon {
    color: var(--auth-primary);
}

.input-label-modern {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 4;
}

.form-control-modern:focus~.input-label-modern,
.form-control-modern:not(:placeholder-shown)~.input-label-modern,
.form-control-modern:valid~.input-label-modern {
    transform: translateY(-1.25rem) scale(0.78);
    left: 3rem;
    color: var(--auth-primary);
    font-weight: 600;
}

/* Password Toggle Icon */
.password-toggle {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--auth-primary);
}

.form-control-modern-pass {
    padding-right: 3rem !important;
}

/* Custom Dropdown Styling */
.form-control-modern-select~.input-icon-right {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9rem;
    z-index: 5;
}

/* Buttons */
.btn-modern {
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    font-size: 0.975rem;
    padding: 0.95rem 1.5rem;
    border-radius: var(--auth-radius-md);
    box-shadow: 0 8px 20px var(--auth-primary-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-modern-agent {
    background: var(--gradient-agent);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.btn-modern-admin {
    background: var(--gradient-admin);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.btn-modern-bank {
    background: var(--gradient-bank);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.18);
}

.btn-modern-coord {
    background: var(--gradient-coord);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.18);
}

.btn-modern:hover {
    transform: translateY(-2.5px);
}

.btn-modern-agent:hover {
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
    filter: brightness(1.05);
}

.btn-modern-admin:hover {
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.3);
    filter: brightness(1.15);
}

.btn-modern-bank:hover {
    box-shadow: 0 12px 25px rgba(5, 150, 105, 0.3);
    filter: brightness(1.05);
}

.btn-modern-coord:hover {
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.3);
    filter: brightness(1.05);
}

.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

/* Subtle Link Styling */
.link-back-selector {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.link-back-selector:hover {
    color: var(--auth-primary);
}

/* Custom Bottom Footer card for consumer site */
.consumer-card-footer {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.consumer-card-footer:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(2, 71, 138, 0.15);
}

/* Typography styles inside cards */
.heading-gradient-primary {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom page headers */
.secure-badge {
    background: rgba(2, 71, 138, 0.06);
    color: var(--auth-primary);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(2, 71, 138, 0.08);
}

.secure-badge.badge-agent {
    color: #0af;
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.08);
}

.secure-badge.badge-admin {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
}

.secure-badge.badge-bank {
    color: #059669;
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.08);
}

.secure-badge.badge-coord {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.08);
}

.wid-logo {
    width: 100px !important;
    margin-bottom: 15px !important;
}