/* Premium SaaS Login Styles - TBB Portal */
:root {
    --brand-teal: #2CA6A4;
    --brand-teal-dark: #228482;
    --brand-teal-light: #35c4c1;
    --device-border: #1e293b;
    --laptop-width: 1100px;
}

body {
    background: #090e1a;
    overflow-x: hidden;
    color: #e2e8f0;
}

/* Background Animation Engine */
.mesh-body-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #090e1a 100%);
}

.mesh-body-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 0% 0%, rgba(44, 166, 164, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(44, 166, 164, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
    animation: bg-drift 20s ease-in-out infinite alternate;
}

@keyframes bg-drift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.device-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

/* Laptop Frame Refinement */
.laptop-frame {
    width: 100%;
    max-width: var(--laptop-width);
    position: relative;
    perspective: 2000px;
    animation: frame-entry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes frame-entry {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.laptop-frame::before {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 10%;
    right: 10%;
    height: 60px;
    background: rgba(0,0,0,0.6);
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.6;
}

.laptop-screen {
    background: #ffffff;
    border: 12px solid var(--device-border);
    border-radius: 28px 28px 0 0;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.05),
        0 50px 100px -20px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
}

.laptop-base {
    height: 18px;
    background: linear-gradient(to bottom, #334155, #0f172a 40%, #000);
    border-radius: 0 0 45px 45px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Reflection Effect */
.laptop-base::before {
    content: "";
    position: absolute;
    bottom: -150px;
    left: 20px;
    right: 20px;
    height: 150px;
    background: linear-gradient(to bottom, rgba(44, 166, 164, 0.1), transparent);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    filter: blur(30px);
    opacity: 0.3;
    pointer-events: none;
}

/* Login Components */
.login-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #fff;
}

.login-left-panel {
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.floating-shapes div {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float-morph 10s ease-in-out infinite;
    will-change: transform, border-radius;
}

@keyframes float-morph {
    0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    33% { transform: translate(15px, -20px) rotate(3deg); border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%; }
    66% { transform: translate(-8px, 15px) rotate(-3deg); border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%; }
}

/* Stagger Animation Engine */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up {
    to { opacity: 1; transform: translateY(0); }
}

/* Input & Button Micro-Interactions */
.input-premium {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    background: #f8fafc;
}

.input-premium:focus-within {
    border-color: var(--brand-teal);
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(44, 166, 164, 0.15);
    transform: scale(1.01);
}

.btn-premium {
    background: var(--brand-teal);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(44, 166, 164, 0.4);
    filter: brightness(1.1);
}

.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
}

/* Shimmer Loading Effect */
.btn-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Trust Pulse */
.trust-badge-pulse {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.trust-badge-pulse::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--brand-teal);
    border-radius: 999px;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Social & Contact Styles (Minimalist Glyph Style) */
.contact-btn, .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    width: auto !important;
    height: auto !important;
}

.contact-btn:hover, .social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2);
    opacity: 0.9;
}

/* Glyph Sizing */
.contact-btn svg, .social-icon svg, .social-icon img {
    height: 24px;
    width: auto;
    display: block;
}

.social-icon.facebook { color: #1877F2 !important; }
.social-icon.instagram { color: #E4405F !important; }
.social-icon.linkedin { color: #0A66C2 !important; }
.social-icon.youtube { color: #FF0000 !important; }
.social-icon.whatsapp { color: #25D366 !important; }
.social-icon.x-twitter { color: #000000 !important; }

/* Contact & Support Section Polish */
.support-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.15);
    opacity: 1;
}

/* Glyph Sizing Optimization */
.contact-btn svg {
    height: 32px;
    width: 32px;
    display: block;
}

.social-icon svg {
    height: 22px;
    width: 22px;
    display: block;
}

/* Mobile Overrides (Dissolve Effect) Trigger at 480px for Phone view only */
@media (max-width: 479px) {
    .device-wrapper { padding: 0; background: #fff; align-items: flex-start; }
    .laptop-frame { transform: none !important; animation: none; max-width: 100%; }
    .laptop-frame::before { display: none; }
    .laptop-screen { border: none; border-radius: 0; box-shadow: none; overflow: visible; }
    .laptop-base { display: none; }
    
    .login-grid { 
        grid-template-columns: 1fr; 
        min-height: 100vh;
        display: block;
        padding: 2rem 1.5rem;
    }
    
    .login-left-panel { display: none; }
    .login-right-panel { padding: 0 !important; }
    .login-card { max-width: 100%; border: none !important; }
}

/* App Install Button Enhancement */
#pwa-install-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}
