@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}

.login-container {
    width: 900px;
    max-width: 100%;
    min-height: 500px;
    background: #fff;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* LEFT PANEL */
.left-panel {
    width: 45%;
    background: linear-gradient(180deg, #003366, #00509e);
    color: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.left-panel .main-logo {
    width: 240px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.left-panel h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.left-panel p {
    font-size: 18px;
    font-weight: 500;
}

/* Master Circular Emblem */
.icmhub-master-circle {
    position: relative;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.28), rgba(15, 76, 129, 0.55));
    border: 2.5px solid rgba(255, 202, 40, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 0 25px rgba(255, 202, 40, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 5px auto;
}

.icmhub-master-circle::before {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 202, 40, 0.7);
    animation: masterRingSpin 22s linear infinite;
    pointer-events: none;
}

@keyframes masterRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icmhub-master-circle:hover {
    transform: scale(1.06);
    border-color: #ffffff;
    box-shadow: 0 16px 40px rgba(255, 202, 40, 0.5), inset 0 0 25px rgba(255, 255, 255, 0.5);
}

.circle-inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.circle-icon-badge {
    font-size: 20px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.circle-title {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 23px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.2px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    line-height: 1.1;
    margin-bottom: 4px;
}

.circle-line {
    width: 40px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #ffca28, transparent);
    margin: 2px 0 6px 0;
}

.circle-subtitle {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #ffca28;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    line-height: 1.3;
    padding: 0 6px;
}

/* Version Card */
.version-card {
    margin-top: auto; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 12px; 
    padding: 16px 20px; 
    font-size: 13px; 
    color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
}

.version-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 8px;
}

.version-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* RIGHT PANEL */
.right-panel {
    width: 55%;
    padding: 50px;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel h2 {
    margin-bottom: 10px;
    color: #003366;
    font-size: 26px;
    font-weight: 700;
}

.right-panel > p {
    margin-bottom: 30px;
    font-size: 15px;
    color: #555;
    font-weight: 600;
}

.form-logo {
    max-width: 220px;
    height: auto;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

#login-form {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

.input-box {
    margin-bottom: 20px;
    position: relative;
}

.input-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

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

.input-group input {
    width: 100%;
    padding: 12px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #333;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #00509e;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background: #003366;
}

.footer-text {
    margin-top: 30px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

.mobile-version-card {
    display: none;
}

@media (max-width: 868px) {
    body {
        align-items: center;
        padding: 20px 10px;
    }

    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        min-height: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .left-panel {
        width: 100%;
        padding: 30px 20px;
        justify-content: center;
        gap: 0;
    }

    .desktop-version {
        display: none !important;
    }

    .mobile-version-card {
        display: block !important;
        margin-top: 0;
        background: linear-gradient(135deg, #003366, #00509e) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 0 0 12px 12px !important;
        padding: 16px 20px !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        box-shadow: none !important;
        text-align: left !important;
    }

    .right-panel {
        width: 100%;
        padding: 35px 25px;
        align-items: center;
    }
}
