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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1d2d4a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 172, 254, 0.35), transparent 40%),
        radial-gradient(circle at 88% 86%, rgba(11, 47, 107, 0.35), transparent 44%),
        linear-gradient(145deg, #0b2f6b 0%, #1a4a8f 58%, #1a56a8 100%);
}

.login-container {
    width: min(980px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: 38% 62%;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(5, 20, 45, 0.35);
}

.left-side {
    background: linear-gradient(170deg, #0a2a63 0%, #12478f 55%, #1a56a8 100%);
    color: #ffffff;
    padding: 44px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.left-side::before {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.left-side::after {
    content: "";
    position: absolute;
    left: auto;
    right: -40px;
    top: 120px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.16);
}

.logo {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding-bottom: 10px;
}

.logo iframe {
    display: block;
    filter: grayscale(1) brightness(3) contrast(1.15);
}

.logo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 148px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.left-side h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.left-side p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    max-width: 28ch;
    position: relative;
    z-index: 1;
}

.right-side {
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.form-box {
    width: min(440px, 100%);
}

.form-box h2 {
    font-size: 28px;
    color: #0b2f6b;
    font-weight: 700;
    text-align: center;
    margin-bottom: 22px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f3a64;
}

.input-group input {
    width: 100%;
    border: 1px solid #d6e2f3;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1a56a8;
    box-shadow: 0 0 0 4px rgba(26, 86, 168, 0.12);
}

.input-group .password-container {
    position: relative;
}

.input-group .password-container input {
    padding-right: 42px;
}

.input-group .toggle-password {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #5f7190;
    cursor: pointer;
}

.btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 14px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #0b2f6b 0%, #1a56a8 100%);
    box-shadow: 0 12px 24px rgba(17, 67, 135, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(17, 67, 135, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #576987;
}

.register-link a {
    color: #0b2f6b;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #0b2f6b;
}

@media (max-width: 860px) {
    .login-container {
        width: min(520px, 100%);
        min-height: unset;
        grid-template-columns: 1fr;
    }

    .left-side {
        padding: 26px 22px 20px;
        gap: 8px;
    }

    .left-side p {
        max-width: none;
    }

    .right-side {
        padding: 28px 20px 24px;
    }

    .form-box h2 {
        font-size: 24px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 14px;
    }

    .login-container {
        border-radius: 18px;
    }

    .left-side {
        padding: 20px 18px 16px;
    }

    .left-side h1 {
        font-size: 24px;
    }

    .right-side {
        padding: 22px 16px;
    }
}
