/* ==========================================================================
   BRICHT Holding Verification Portal Styles
   ========================================================================== */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0c0d12;
    --accent-turquoise: #00d2ff;
    --accent-purple: #9d4ede;
    --accent-green: #06d6a0;
    --text-primary: #ffffff;
    --text-secondary: #a0a4b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --gradient-accent: linear-gradient(135deg, var(--accent-turquoise) 0%, var(--accent-purple) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(5, 5, 8, 0.85), rgba(5, 5, 8, 0.85)), url('assets/bg_back_v.jpg') center/cover no-repeat fixed;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-header-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.holding-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .brand-header-text {
        font-size: 3.6rem;
    }
    .holding-text {
        font-size: 2.4rem;
    }
}

.portal-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.content-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Glassmorphism Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.verification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;

    padding: 0.5rem 1rem;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.shield {
    width: 28px;
    height: 28px;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent-turquoise);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: var(--accent-turquoise);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.verification-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.employee-details {
    text-align: center;
}

.photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--accent-turquoise);
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.employee-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.info-group {
    margin-bottom: 2rem;
}

.employee-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.employee-position {
    color: var(--accent-turquoise);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.employee-department {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.25rem 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.id-value {
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--accent-turquoise);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-green);
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}

/* Error & Welcome Cards */
.error-card, .welcome-card {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon, .scan-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.error-icon {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.scan-icon {
    color: var(--accent-turquoise);
    background: rgba(0, 210, 255, 0.1);
}

.error-icon svg, .scan-icon svg {
    width: 36px;
    height: 36px;
}

.error-title, .welcome-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.error-desc, .welcome-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Footer */
.footer {
    margin-top: 3rem;
    text-align: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.bricht-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Responsive Media Queries */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem 1rem;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .meta-item {
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .meta-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .employee-name {
        font-size: 1.35rem;
    }

    .footer-logos {
        gap: 1rem;
    }

    .footer-logo {
        height: 32px;
    }

    .bricht-text {
        font-size: 1.2rem;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 214, 160, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0);
    }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-turquoise);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
