* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen, Ubuntu, "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
                 Arial, sans-serif;
}

body {
    background: #fff;
    color: #1d1e20;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* LEFT – LOGIN */
.login-section {
    width: 50%;
    padding: 20px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
}

.login-container {
    max-width: 400px;
    width: 100%;
}

.logo {
    margin-bottom: 20px;
    text-align: center;
}

.logo img {
    width: 150px;
    height: auto;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1e20;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1d1e20;
}

input[type=email],
input[type=password],
input[type=text] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c4c9cf;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color .2s;
}

input.err {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, .1);
}

input:focus {
    outline: none;
    border-color: #0070c9;
    box-shadow: 0 0 0 3px rgba(0, 112, 201, .1);
}

.err-msg {
    display: none;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
}

.err-msg.show {
    display: block;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4b4d4e;
    cursor: pointer;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
    color: #0070c9;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: #333;
}

.btn-login:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #4b4d4e;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 16px;
    font-size: 14px;
}

.sso-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.btn-sso {
    flex: 1;
    padding: 12px;
    background: #fff;
    color: #1d1e20;
    border: 1px solid #c4c9cf;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, border-color .2s;
}

.btn-sso:hover {
    background: #f8fafc;
    border-color: #0070c9;
}

.btn-sso svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #4b4d4e;
}

.signup-link a {
    color: #0070c9;
    text-decoration: none;
    margin-left: 4px;
    font-weight: 500;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    font-size: 14px;
}

.footer-links a {
    color: #4b4d4e;
    text-decoration: none;
}

.footer-links a:hover {
    color: #0070c9;
}

/* RIGHT – PROMO */
.feature-section {
    width: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.feature-content {
    padding: 48px 40px 32px;
    max-width: 560px;
}

.feature-heading {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #1d1e20;
    letter-spacing: -0.02em;
}

.feature-subheading {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #4b4d4e;
}

.btn-learn-more {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-learn-more:hover {
    background: #333;
}

.feature-image {
    flex: 1;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #e85d4a;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

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

    .login-section,
    .feature-section {
        width: 100%;
    }

    .login-section {
        padding: 40px 24px;
    }

    .feature-content {
        max-width: 100%;
        padding: 40px 24px 24px;
    }

    .feature-heading {
        font-size: 36px;
    }
}
