/* Exact high-fidelity replication of the SSM Login Mockup (Blurred control room, neon glows, SVG shield) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Outfit', 'Prompt', sans-serif;
    background-color: #030712;
    /* Background Image: Blurred Security Control Room */
    background-image: 
        linear-gradient(rgba(3, 7, 18, 0.5), rgba(3, 7, 18, 0.6)),
        url('../images/ssm_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #f8fafc;
    position: relative;
}

/* Background circuit lines overlay */
.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' width='100%25' height='100%25' opacity='0.12'%3E%3Cpath d='M 100,100 L 300,100 L 350,150 L 600,150 L 650,200 L 900,200 L 950,150 L 1200,150' fill='none' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M 200,800 L 400,800 L 450,750 L 800,750 L 850,800 L 1100,800' fill='none' stroke='%233b82f6' stroke-width='1.5'/%3E%3Ccircle cx='100' cy='100' r='4' fill='%2300f0ff'/%3E%3Ccircle cx='1200' cy='150' r='4' fill='%2300f0ff'/%3E%3Ccircle cx='200' cy='800' r='4' fill='%233b82f6'/%3E%3Ccircle cx='1100' cy='800' r='4' fill='%233b82f6'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
    z-index: 2;
}

/* Main Layout */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.login-layout {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Matches the exact spacing */
    gap: 90px;
    align-items: center;
}

/* Left side: The Card */
.login-card {
    background: rgba(18, 25, 41, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 20px;
    padding: 55px 45px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 240, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 440px;
    justify-self: end;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 400;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #00f0ff;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(4, 8, 16, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #475569;
}

.form-control:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

/* Extra options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    accent-color: #00f0ff;
    width: 15px;
    height: 15px;
}

.support-link {
    color: #00f0ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.support-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Capsule Glowing Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #00f0ff;
    border: none;
    border-radius: 30px;
    color: #030712;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    text-transform: uppercase;
}

.btn-login:hover {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

/* Right side: Brand Info */
.brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    justify-self: start;
}

.shield-logo-svg {
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.7));
    margin-bottom: 25px;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    }
    100% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.8));
    }
}

.brand-title {
    font-size: 80px; /* Large bold brand title */
    font-weight: 800;
    letter-spacing: 2px;
    color: #00f0ff;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    font-family: 'Outfit', sans-serif;
}

.brand-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 1.5px;
}

/* Footer Section */
.footer-text {
    width: 100%;
    text-align: center;
    padding: 25px;
    font-size: 12px;
    color: #475569;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Support QR Code Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.support-modal {
    background: rgba(13, 22, 43, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 18px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 240, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-overlay.active .support-modal {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #00f0ff;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-qr {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.modal-qr img {
    display: block;
    width: 140px;
    height: 140px;
}

.modal-footer {
    font-size: 12px;
    color: #64748b;
}

/* Responsive design */
@media (max-width: 850px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .main-wrapper {
        padding: 40px 20px;
    }
    .login-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 440px;
    }
    .login-card {
        justify-self: center;
        order: 2;
    }
    .brand-panel {
        justify-self: center;
        order: 1;
    }
    .brand-title {
        font-size: 56px;
    }
}
