/* Main container */
.onv-login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.onv-login-form {
    width: 25%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--onv-light-bg-primary);
    min-width: 350px;
}

.onv-form-header {
    margin-bottom: 30px;
}

.onv-welcome-text {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.onv-hand-icon {
    font-size: 20px;
    margin-left: 8px;
}

.onv-day-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.onv-forgot-password {
    text-align: right;
    font-size: 11px;
    color: #0066ff;
    text-decoration: none;
    margin-top: 6px;
    display: block;
}

/* Scoped: border & color only */
.onv-login-form .onv-form-input {
    border: 1px solid #e5e7eb;
    background-color: #fafbfc;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.onv-login-form .onv-form-input:hover {
    border-color: #d1d5db;
    background-color: #fff;
}

.onv-login-form .onv-form-input:focus {
    border-color: var(--onv-primary, #0066ff);
    background-color: #fff;
    box-shadow: var(--onv-shadow-focus);
}

.onv-login-form .onv-input-group-text {
    border-color: #e5e7eb;
    background-color: #fafbfc;
    color: #6b7280;
}

.onv-login-form .onv-btn-light {
    border: 1px solid #e5e7eb;
}

.onv-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.onv-divider::before,
.onv-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eceff3;
}

.onv-divider-text {
    padding: 0 8px;
    font-size: 11px;
    color: #666;
}

.onv-signup-link {
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}

.onv-signup-text {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.onv-footer {
    margin-top: 30px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* Image container (right side) - 75% width (1:3 ratio) */
.onv-image-container {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.onv-img-auto-button {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
}

/* Blue overlay like in the second screenshot */
.onv-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 54, 76, 0.236);
    z-index: 1;
}

/* Multiple breakpoints for smoother transitions */
@media (max-width: 1200px) {
    .onv-login-form {
        width: 35%;
    }
}

@media (max-width: 992px) {
    .onv-login-form {
        width: 45%;
    }
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .onv-login-container {
        flex-direction: column;
    }

    .onv-login-form {
        width: 100%;
        padding: 24px;
        order: 2;
        min-width: unset;
    }

    .onv-image-container {
        width: 100%;
        height: 30vh;
        /* Proportional height using viewport height */
        min-height: 200px;
        /* Minimum height */
        max-height: 300px;
        /* Maximum height */
        order: 1;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .onv-login-form {
        padding: 20px;
        /* Slightly reduced padding for smaller screens */
    }
}
/* Mode Dark */
body.onv-dark-mode .onv-login-form {
    background-color: var(--onv-dark-bg-primary);
    color: var(--onv-dark-text-primary);
}
body.onv-dark-mode .onv-day-text {
    color: var(--onv-dark-text-primary);
}
body.onv-dark-mode .onv-login-form .onv-form-input {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}
body.onv-dark-mode .onv-login-form .onv-form-input:hover {
    border-color: #4b5563;
}
body.onv-dark-mode .onv-login-form .onv-input-group-text {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}
body.onv-dark-mode .onv-divider::before,
body.onv-dark-mode .onv-divider::after {
    border-color: #374151;
}
