* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-y: auto;
}

:root {
    --split-width: 62%;
    --navy: #0b1f42;
    --navy-deep: #081633;
    --blue: #1E88E5;
    --blue-bright: #2f6fed;
}

.bg-left {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--split-width);
    height: 100%;
    background-image: url('../images/image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    display: flex;
    align-items: center;
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(4, 12, 30, 0.88) 0%,
        rgba(6, 16, 38, 0.72) 42%,
        rgba(8, 20, 45, 0.35) 68%,
        rgba(8, 20, 45, 0.15) 100%);
    z-index: -1;
}

.left-content {
    position: relative;
    padding: 40px 60px;
    max-width: 640px;
    color: #ffffff;
}

.eyebrow {
    color: #6db4f0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.brand-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #4fa3ec;
}

.brand-title span {
    color: #4fa3ec;
    font-weight: 600;
}

.brand-divider {
    width: 60px;
    height: 3px;
    background: #4fa3ec;
    border-radius: 2px;
    margin-bottom: 22px;
}

.brand-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: #d7e3f5;
    max-width: 430px;
    margin-bottom: 40px;
}

.bg-right {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - var(--split-width));
    height: 100%;
    background-image: url('../images/loginbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 2px 20px var(--split-width);
    position: relative;
}

.login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.login-columns {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.logo-img {
    display: block;
    width: 170px;
    height: auto;
    margin: 0 auto 18px;
}

.welcome-message {
    color: #444;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 6px;
}

.welcome-subtitle {
    color: var(--blue-bright);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
}

.subtitle-underline {
    width: 46px;
    height: 2px;
    background: var(--blue-bright);
    border-radius: 2px;
    margin: 8px auto 26px;
}

.login-card {
    width: 100%;
    padding: 34px 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrap,
.password-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

button.input-icon.password-eye {
    pointer-events: auto;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 13px 18px 13px 44px;
    border: 1.5px solid #d6d6d6;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    outline: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #b0b0b0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}

.password-wrap input {
    padding-right: 46px;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.toggle-password:hover {
    color: #1E88E5;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.toggle-password .icon-eye {
    display: inline;
}

.toggle-password .icon-eye-off {
    display: none;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--blue-bright), #1a5fd0);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(30, 95, 208, 0.35);
    transition: box-shadow 0.15s ease;
}

.login-button:hover {
    box-shadow: 0 12px 28px rgba(30, 95, 208, 0.45);
}

.login-button:active {
    box-shadow: 0 6px 16px rgba(30, 95, 208, 0.35);
}

.login-button:disabled,
.login-button.is-loading {
    opacity: 0.85;
}

.otp-hint {
    font-size: 13px;
    line-height: 1.5;
    color: #5b6b80;
    text-align: center;
    margin: 0 0 16px;
}

.otp-hint + .otp-spam-note {
    margin-top: -10px;
    font-size: 12px;
}

.otp-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 18px;
}

input.otp-box {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 0;
    border: 1.5px solid #d6d6d6;
    border-radius: 10px;
    font-family: inherit;
}

input.otp-box:focus {
    outline: none;
    border-color: #1591EA;
    box-shadow: 0 0 0 3px rgba(21, 145, 234, 0.15);
}

.resend-form {
    margin-top: 10px;
    text-align: center;
}

.resend-link {
    border: 0;
    background: none;
    color: #1591EA;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.resend-link:disabled {
    color: #94a3b8;
    cursor: default;
}

.help-button {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
    font-size: 24px;
    color: #666;
}

.help-button:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid #c3e6cb;
}

.links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 22px;
    font-size: 14px;
}

.forgot-password {
    color: var(--blue-bright);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.remember-me input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #1591EA;
}

.login-footer {
    margin-top: 50px;
    text-align: center;
    color: #cfe0f7;
}

.footer-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #d7e6fb;
    letter-spacing: 0.3px;
}

.footer-tags svg {
    width: 15px;
    height: 15px;
    color: #6db4f0;
}

.footer-copy {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11.5px;
    line-height: 1.6;
    color: #8ea6cc;
}

@media (max-width: 860px) {
    .container {
        justify-content: center;
        padding: 20px;
    }
    .login-wrap {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    :root {
        --split-width: 8%;
    }
    .left-content {
        display: none;
    }
    .container {
        padding: 24px 16px;
    }
    .login-wrap {
        max-width: 360px;
        width: 100%;
    }
    .login-card {
        padding: 30px 26px 34px;
    }
}
