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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #EDEFF7;
    color: #030306;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "rlig" 1, "calt" 1;
}

/* ─── Two-column layout ──────────────────────────────────────── */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ─── Left branding panel ────────────────────────────────────── */
.left-panel {
    flex: 0 0 42%;
    background: linear-gradient(150deg, #0533CA 0%, #2A1BAF 45%, #502BDA 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 56px 48px;
}

.brand-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Logo block */
.logo-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-icon {
    flex-shrink: 0;
    width: 55px;
    height: 53px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-name {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
    line-height: 1.55;
}

/* Feature list */
.features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.feature-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

/* Decorative circles */
.deco-circle-1 {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    top: -120px;
    right: -140px;
    pointer-events: none;
}

.deco-circle-2 {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -90px;
    left: -90px;
    pointer-events: none;
}

.deco-circle-3 {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: 55%;
    right: 16px;
    pointer-events: none;
}

/* ─── Right login panel ──────────────────────────────────────── */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #EDEFF7;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

/* Form header */
.form-header {
    margin-bottom: 32px;
}

.form-title {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #030306;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 14px;
    color: #545454;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border: 1.5px solid transparent;
}

.alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-error {
    background: #FFF2F2;
    color: #C10000;
    border-color: #FFCACA;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}

.alert-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

.alert-success {
    background: #F0FDF4;
    color: #15803D;
    border-color: #BBF7D0;
}

/* ─── Form ───────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 8px;
}

/* Field */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: #030306;
    letter-spacing: -0.01em;
}

.field-input {
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1.5px solid #D8DBE5;
    background: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: #030306;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    width: 100%;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
}

.field-input::placeholder {
    color: #ADAFB1;
}

.field-input:focus {
    border-color: #502BDA;
    box-shadow: 0 0 0 3px rgba(80, 43, 218, 0.12);
}

.field-error .field-input {
    border-color: #DD0000;
    background: #FFF8F8;
}

.field-error .field-input:focus {
    box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.1);
}

.field-error-msg {
    font-size: 12px;
    color: #DD0000;
    letter-spacing: -0.01em;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .field-input {
    padding-right: 48px;
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #ADAFB1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    border-radius: 6px;
}

.eye-btn:hover {
    color: #502BDA;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Form meta row */
.form-meta {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 24px;
}

.forgot-link {
    font-size: 13px;
    color: #502BDA;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: #835AFF;
}

/* No forgot password → still leave space */
.login-form:not(:has(.form-meta)) .field-group {
    margin-bottom: 24px;
}

/* Submit button */
.btn-submit {
    height: 48px;
    width: 100%;
    background: #502BDA;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    box-shadow: 0px 4px 12px rgba(80, 43, 218, 0.25);
}

.btn-submit:hover {
    background: #3d20b5;
    box-shadow: 0px 6px 18px rgba(80, 43, 218, 0.38);
}

.btn-submit:active {
    transform: scale(0.985);
    box-shadow: 0px 2px 6px rgba(80, 43, 218, 0.2);
}

/* Register link */
.register-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #545454;
    letter-spacing: -0.01em;
}

.register-link a {
    color: #502BDA;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.register-link a:hover {
    color: #835AFF;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .left-panel {
        flex: 0 0 38%;
        padding: 40px 32px;
    }
}

@media (max-width: 700px) {
    .layout {
        flex-direction: column;
    }

    .left-panel {
        flex: none;
        padding: 28px 24px 32px;
        align-items: flex-start;
    }

    .brand-container {
        gap: 0;
    }

    .features {
        display: none;
    }

    .deco-circle-1 {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -60px;
    }

    .deco-circle-2,
    .deco-circle-3 {
        display: none;
    }

    .right-panel {
        flex: 1;
        padding: 32px 20px 40px;
        align-items: flex-start;
    }

    .form-container {
        max-width: 100%;
    }
}
