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

html, body {
    height: 100%;
    margin: 0;
}

body {
    background: #060d1f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ======================
   OUTER FRAME
====================== */

.page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    min-height: 620px;
    background: #0d1730;
    border-radius: 24px;
    border: 1px solid rgba(99,102,241,0.2);
    box-shadow: 0 0 60px rgba(99,102,241,0.08), 0 24px 64px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* ======================
   LEFT SIDE
====================== */

.left-side {
    background: radial-gradient(ellipse at center, #0d2254 0%, #060d1f 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.network-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.shield-wrap {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 40px rgba(220,38,38,0.4));
}

.shield-svg {
    width: 220px;
    height: auto;
}

/* ======================
   RIGHT SIDE
====================== */

.right-side {
    background: #141b2d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

/* Card Icon */
.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon i {
    font-size: 36px;
    color: #ef4444;
}

.card-title {
    font-size: 28px;
    font-weight: 800;
    color: #f1f5f9;
    text-align: center;
    margin-bottom: 6px;
}

.card-sub {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
}

/* Flash messages */
.flash-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.flash-error   { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.flash-success { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }

/* ======================
   FORM FIELDS
====================== */

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 15px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    background: #1e293b;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: "Segoe UI", sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder { color: #475569; }

.input-wrap input:focus {
    border-color: rgba(239,68,68,0.5);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s;
}

.toggle-pw:hover { color: #94a3b8; }

/* ======================
   OPTIONS ROW
====================== */

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #94a3b8;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ef4444;
    cursor: pointer;
    border-radius: 4px;
}

.forgot-link {
    font-size: 14px;
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover { opacity: 0.8; text-decoration: underline; }

/* ======================
   SIGN IN BUTTON
====================== */

.signin-btn {
    width: 100%;
    padding: 15px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: "Segoe UI", sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.signin-btn:hover { background: #b91c1c; }
.signin-btn:active { transform: scale(0.99); }

/* ======================
   OR DIVIDER
====================== */

.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: #334155;
    font-size: 13px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.or-divider span {
    background: #1e2a3a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 12px;
}

/* ======================
   FOOTER TEXT
====================== */

.warning-text {
    text-align: center;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
}

.copyright-text {
    text-align: center;
    font-size: 12px;
    color: #334155;
}