.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background-color: var(--bg-main); /* #F2E5D7 */
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-title {
    font-size: 22px;
    font-weight: 700; /* Bold */
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-main);
}

.auth-copy,
.auth-help {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: -10px 0 18px;
    text-align: center;
}

.auth-help {
    margin: -4px 0 16px;
    text-align: left;
}

.auth-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.login-type-switch {
    border: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 16px;
    padding: 0;
}

.login-type-option {
    cursor: pointer;
}

.login-type-option input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.login-type-option span {
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-card);
    border-radius: 999px;
    color: var(--text-secondary);
    display: flex;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.login-type-option input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.login-type-option input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.alert {
    align-items: flex-start;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    line-height: 1.45;
    margin-bottom: 16px;
    padding: 12px;
}

.alert img {
    flex: 0 0 auto;
    width: 18px;
}

.alert-error {
    background: #fff1f1;
    border: 1px solid #ffd8d8;
    color: var(--error);
}

.alert-success {
    background: #eaf7ee;
    border: 1px solid #cbead4;
    color: #207a39;
}

.input-group-custom {
    position: relative;
    margin-bottom: 16px;
}

.input-group-custom.password-field input {
    margin-bottom: 0;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
}

.input-group-custom input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    box-sizing: border-box;
    border: 1px solid var(--border-card);
    background: var(--input-bg);
    color: var(--text-main);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group-custom input:focus {
    border-color: var(--primary);
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.eye-btn:hover {
    opacity: 0.9;
}

.eye-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 999px;
}

.eyeIcon {
    width: 18px;
    height: 18px;
    display: block;
}

.password-requirements {
    background-color: var(--input-bg);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0 16px;
}

.password-requirements p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-requirements li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 13px;
}

.password-requirements li span {
    color: var(--error);
    font-weight: 700;
    display: inline-block;
    width: 14px;
    text-align: center;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid span {
    color: var(--success);
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    font-size: 13px;
    color: var(--primary-hover);
    text-decoration: none;
}

.btn-login-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-card);
    z-index: 1;
}

.divider span {
    background: var(--card-bg);
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.social-login .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-card);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 400;
}

.btn-social img {
    width: 20px;
    margin-right: 10px;
}

.register-link {
    text-align: center;
    margin-top: 10px;
}

.register-link a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-secondary-link {
    margin-top: 18px;
    text-align: center;
}

.auth-secondary-link a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
