﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    display: flex;
    height: 100vh;
}

/* =====================
   LEFT PANEL
===================== */
.left-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(155deg, #001F3F 0%, #001F3F 50%, #0d47a1 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Dot grid - top left */
.dot-grid {
    position: absolute;
    display: grid;
    gap: 10px;
}

.dot-grid-tl {
    top: 20px;
    left: 20px;
    grid-template-columns: repeat(6, 8px);
    grid-template-rows: repeat(5, 8px);
}

.dot-grid-bl {
    bottom: 20px;
    left: 20px;
    grid-template-columns: repeat(6, 8px);
    grid-template-rows: repeat(4, 8px);
}

.dot-grid::before {
    content: '';
    display: none;
}

/* Generate dots using box-shadow trick via JS — simpler: use pseudo radial */
.dot-grid-tl,
.dot-grid-bl {
    width: 80px;
    height: 60px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

.dot-grid-bl {
    height: 50px;
}

/* Watermark crosses */
.watermark-cross {
    position: absolute;
    font-size: 100px;
    color: rgba(255, 255, 255, 0.08);
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

    .watermark-cross.top-right {
        top: -10px;
        right: 10px;
        font-size: 160px;
    }

    .watermark-cross.bottom-right {
        bottom: 20px;
        right: 30px;
        font-size: 120px;
    }

/* Left content */
.left-content {
    position: relative;
    z-index: 2;
    padding: 50px 45px;
    color: white;
    width: 100%;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 45px;
}

.brand-icon {
    width: 55px;
    height: 55px;
    border: 2.5px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 26px;
    color: white;
}

.brand-plus {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 16px;
    font-weight: 700;
    background: white;
    color: #0d47a1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-sub {
    font-size: 13px;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Welcome heading */
.welcome-heading {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.welcome-sub {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 380px;
}

/* Feature items */
.features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.feature-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: white;
}

.feature-text p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
    color: white;
}

/* =====================
   RIGHT PANEL
===================== */
.right-panel {
    flex: 1;
    background: #f4f7fb;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 420px;
    background: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

    .login-card h4 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 6px;
        color: #1a1a2e;
    }

    .login-card .text-muted {
        font-size: 14px;
        margin-bottom: 24px;
        display: block;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        font-size: 13px;
        font-weight: 600;
        color: #444;
        margin-bottom: 6px;
        display: block;
    }

.form-control {
    height: 45px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #dde3f0;
    padding: 0 14px;
    width: 100%;
}

    .form-control:focus {
        outline: none;
        border-color: #0d47a1;
        box-shadow: 0 0 0 3px rgba(13,71,161,0.1);
    }

.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 42px;
    }

    .password-wrapper button {
        position: absolute;
        right: 12px;
        top: 36px;
        background: none;
        border: none;
        cursor: pointer;
        color: #888;
        padding: 0;
    }

.btn-primary {
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(155deg, #001F3F 0%, #001F3F 50%, #0d47a1 100%);
    border: none;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .btn-primary:hover:not(:disabled) {
        opacity: 0.9;
    }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1 1 100%;
    }

    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
}
