/* 
 * BB AuditPro Entry-Point Design System
 * ------------------------------------
 * High-fidelity, premium styles for Portal Hub and Multi-Role Login.
 */

:root {
    --primary-navy: #163A5F;
    --secondary-navy: #1E4C75;
    --accent-blue: #3B82F6;
    --surface-white: #FFFFFF;
    --text-main: #0F172A;
    --text-sub: #475569;
    --radius-card: 28px;
    --radius-btn: 14px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Global Reset & Typography */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

/* ---------------------------------------------------------
   PORTAL HUB (Role Selection) Styles
   --------------------------------------------------------- */

.hub-body {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
}

.hub-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hub-header {
    margin-bottom: 80px;
}

.hub-header img {
    max-width: 240px;
    margin-bottom: 24px;
}

.hub-header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: var(--primary-navy);
}

.hub-header p {
    font-size: 1.15rem;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

.hub-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.portal-card {
    flex: 0 1 340px;
    background: var(--surface-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-card);
    padding: 48px 32px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.portal-card:hover {
    transform: translateY(-12px);
    background: var(--surface-white);
    border-color: var(--accent-blue);
    box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
}

.portal-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 2.5rem;
    color: var(--secondary-navy);
    transition: all 0.4s;
    position: relative;
}

.portal-card:hover .icon-box {
    background: var(--primary-navy);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.portal-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.portal-card p {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 0;
}

.portal-card .action-label {
    margin-top: 32px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.3s;
}

/* ---------------------------------------------------------
   PREMIUM LOGIN Styles (Split-Screen / Image BG)
   --------------------------------------------------------- */

.auth-body {
    overflow: hidden;
    background: #000;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.auth-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.auth-wrapper {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 80px;
}

.login-glass-panel {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 60px 50px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25);
}

.brand-logo {
    margin-bottom: 48px;
    text-align: center;
}

.brand-logo img {
    max-width: 200px;
    margin-bottom: 8px;
}

.tagline {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.welcome-head {
    margin-bottom: 40px;
    text-align: center;
}

.welcome-head h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.welcome-head p {
    font-size: 1rem;
    color: var(--text-sub);
}

.form-label-custom {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 24px;
}

.input-group-custom i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-navy);
    opacity: 0.5;
    font-size: 1.2rem;
}

.input-group-custom input {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(22, 58, 95, 0.1);
    border-radius: 16px;
    padding: 16px 16px 16px 52px;
    color: var(--primary-navy);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group-custom input:focus {
    background: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.toggle-pwd {
    position: absolute;
    right: 18px;
    left: auto !important;
    cursor: pointer;
    transition: color 0.3s;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-navy);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.check-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-navy);
    cursor: pointer;
}

.forgot-pass {
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.btn-login-main {
    width: 100%;
    background: var(--primary-navy);
    border: none;
    border-radius: var(--radius-btn);
    padding: 18px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(22, 58, 95, 0.2);
}

.btn-login-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(22, 58, 95, 0.3);
    filter: brightness(1.1);
}

.signup-prompt {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.signup-prompt a {
    color: var(--primary-navy);
    text-decoration: underline;
    font-weight: 700;
}

/* ---------------------------------------------------------
   RESPONSIVE OVERRIDES
   --------------------------------------------------------- */

@media (max-width: 768px) {
    /* Hub Resp */
    .hub-body { height: auto; padding: 60px 20px; }
    .hub-grid { flex-direction: column; align-items: center; }
    .portal-card { width: 100%; max-width: 400px; }

    /* Auth Resp */
    .auth-wrapper { padding: 20px; justify-content: center; }
    .login-glass-panel { padding: 40px 30px; }
    .auth-bg::after { background: rgba(0,0,0,0.5); }
}
