body {
    line-height: 1.6;
    color: var(--third-color);
    background: var(--first-color);
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Forms Section */
.forms-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--first-color);
}

.form-wrapper {
    width: 100%;
    max-width: 450px;
}

.form-content {
    padding: 40px;
}

.form-title {
    font-family: var(--font-header);
    font-size: 3rem;
    color: var(--third-color);
    margin-top: 4.5rem;
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--third-color);
    margin-bottom: 30px;
    font-size: var(--body-section-size);
    font-family: var(--font-body);
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--third-color);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-body);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--third-color);
    border-radius: 8px;
    font-size: var(--body-section-size);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.input-group input:focus {
    outline: none;
    border-color: var(--third-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    font-family: var(--font-body);
    margin-bottom: 0;
    font-size: 14px;
    color: var(--third-color);
}

.checkbox-group a {
    color: var(--third-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn {
    font-family: var(--font-body);
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--third-color);
    color: var(--first-color);
}

.btn-primary:hover {
    background-color: var(--second-color);
    color: var(--third-color);
}

.switch-form {
    font-family: var(--font-body);
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.switch-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Image Section */
.image-container {
    flex: 1;
    position: relative;
    background: url(../images/login-img-bg.png) center/cover no-repeat;
    min-height: 100vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--third-color);
    opacity: 0.30;
}

.image-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--first-color);
    padding: 40px;
}

.image-content h1 {
    font-family: var(--font-header);
    font-size: var(--header-section-size);
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.image-content p {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ── Password field wrapper ── */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #a08060;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--third-color);
}

/* ── Strength bar container ── */
.strength-bar-wrap {
    margin-top: 8px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.strength-bar-wrap .bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e0d5cc;
    transition: background 0.3s ease;
}

.strength-bar-wrap[data-strength="1"] .bar:nth-child(1)                         { background: #e74c3c; }
.strength-bar-wrap[data-strength="2"] .bar:nth-child(1),
.strength-bar-wrap[data-strength="2"] .bar:nth-child(2)                         { background: #e67e22; }
.strength-bar-wrap[data-strength="3"] .bar:nth-child(1),
.strength-bar-wrap[data-strength="3"] .bar:nth-child(2),
.strength-bar-wrap[data-strength="3"] .bar:nth-child(3)                         { background: #f1c40f; }
.strength-bar-wrap[data-strength="4"] .bar:nth-child(1),
.strength-bar-wrap[data-strength="4"] .bar:nth-child(2),
.strength-bar-wrap[data-strength="4"] .bar:nth-child(3),
.strength-bar-wrap[data-strength="4"] .bar:nth-child(4)                         { background: #2ecc71; }

/* ── Strength label ── */
.strength-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 56px;
    text-align: right;
    transition: color 0.3s ease;
}

.strength-label[data-strength="1"] { color: #e74c3c; }
.strength-label[data-strength="2"] { color: #e67e22; }
.strength-label[data-strength="3"] { color: #f1c40f; }
.strength-label[data-strength="4"] { color: #2ecc71; }

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        flex-direction: column-reverse;
    }
    
    .image-container {
        min-height: 300px;
    }
    
    .image-content h1 {
        font-size: 40px;
    }
    
    .image-content p {
        font-size: 18px;
    }
    
    .form-content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .forms-container {
        padding: 20px 15px;
    }
    
    .form-content {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 26px;
    }
    
    .image-content h1 {
        font-size: 32px;
    }
}