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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    background: #ffffff;
}


.brand-panel {
    width: 36%;
    min-height: 100vh;
    background: #140083;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,113,7,0.18) 0%, transparent 70%);
    bottom: -120px;
    right: -120px;
    pointer-events: none;
}

.brand-panel::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    top: -60px;
    left: -60px;
    pointer-events: none;
}

.brand-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 20px;
}

.brand-center img {
    max-width: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.90;
}

.brand-divider {
    width: 32px;
    height: 2px;
    background: rgba(255, 113, 7, 0.6);
    border-radius: 2px;
}

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.22);
    text-align: center;
    letter-spacing: 0.3px;
}



.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    background: #ffffff;
}

.form-inner {
    width: 100%;
    max-width: 360px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: #0d0d2b;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 14px;
    color: #9099b0;
    margin-bottom: 36px;
}


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

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5a607a;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #b0b8cc;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
}

.input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: #f7f8fc;
    border: 1.5px solid #e8eaf2;
    border-radius: 10px;
    color: #0d0d2b;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
    color: #c2c8d8;
    font-size: 13px;
}

.input-wrap input:focus {
    border-color: #140083;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 0, 131, 0.07);
}

.input-wrap input:focus + svg,
.input-wrap:focus-within svg {
    stroke: #140083;
}


.alert-danger {
    background: #fff1f1;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

.error-text {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 2px;
}


.login-button {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    background: #140083;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(20, 0, 131, 0.22);
}

.login-button:hover {
    background: #1d00b5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(20, 0, 131, 0.30);
}

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


.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #9099b0;
}

.form-footer a {
    color: #ff7107;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.form-footer a:hover {
    opacity: 0.75;
}


@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .brand-panel {
        width: 100%;
        min-height: 140px;
        padding: 32px 28px;
    }

    .form-panel {
        padding: 40px 24px;
    }
}
