/* 
   OLEVSKIY Private Portal CSS
   Design: Swiss Banker / Minimalist Private Fund Style
   Theme: Obsidian Dark with Refined Sand-Gold Accents
*/

:root {
    --bg-color: #08090c;
    --card-bg: rgba(14, 15, 20, 0.7);
    --border-color: #1a1c23;
    --border-focus: #444857;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-muted: #48484a;
    
    /* Accents */
    --accent-gold: #c5a880;
    --accent-gold-rgb: 197, 168, 128;
    --accent-green: #30d158;
    --accent-red: #ff453a;

    /* Fonts & Spacing */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --letter-spacing-wide: 0.35em;
    --letter-spacing-mid: 0.15em;
    --letter-spacing-small: 0.08em;
}

/* Base resets & layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Top Security Line */
.security-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(var(--accent-gold-rgb), 0) 0%, 
        rgba(var(--accent-gold-rgb), 0.6) 50%, 
        rgba(var(--accent-gold-rgb), 0) 100%
    );
    background-size: 200% 100%;
    animation: flowLine 8s infinite linear;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

/* App structure */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 24px;
    justify-content: space-between;
    z-index: 10;
    position: relative;
}

/* Grid overlay background effect for institutional tech feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
}

/* Monospace font utility */
.text-mono {
    font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* HEADER: System Status Bar */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    z-index: 5;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-label {
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-small);
}

.status-val {
    color: var(--text-primary);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    display: inline-block;
}

.status-indicator.active {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: statusPulse 2s infinite ease-in-out;
}

/* MAIN PORTAL AREA */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    z-index: 5;
}

/* BRANDING: Swiss Bank Style Minimal Typography */
.branding-section {
    text-align: center;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 12px;
    text-indent: var(--letter-spacing-wide); /* offset tracking for perfect centering */
    animation: fadeInTitle 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-mid);
    color: var(--accent-gold);
    text-indent: var(--letter-spacing-mid);
    animation: fadeInSubtitle 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-subtitle .divider {
    color: var(--text-muted);
    margin: 0 4px;
}

/* MESSAGE COMPONENT */
.auth-section {
    width: 100%;
    max-width: 440px;
    animation: fadeInCard 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 40px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.auth-lock-icon {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
}

.auth-notice {
    text-align: center;
}

.restricted-notice {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: var(--letter-spacing-mid);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.notice-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* FOOTER Status Bar */
.status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    z-index: 5;
}

.footer-segment {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-segment.text-right {
    justify-content: flex-end;
}

.footer-segment .label {
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-small);
}

.security-badge {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: 500;
}

.shield-icon {
    width: 10px;
    height: 10px;
    color: var(--accent-green);
}

.ip-label {
    letter-spacing: var(--letter-spacing-small);
}

.ip-val {
    color: var(--text-primary);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .status-header {
        padding-bottom: 12px;
    }
    .hide-mobile {
        display: none;
    }
    .brand-title {
        font-size: 2.5rem;
    }
    .portal-main {
        gap: 30px;
    }
    .status-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-segment,
    .footer-segment.text-right {
        justify-content: center;
        width: 100%;
    }
}

/* ANIMATIONS */
@keyframes flowLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 4px var(--accent-green); }
    50% { opacity: 1; box-shadow: 0 0 10px var(--accent-green); }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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