/* Login Form - BEM Style */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Block: Login Container */
.login-container {
    width: 100%;
}

/* Block: Login Form */
.login-form {
    width: 100%;
    padding: 30px 25px;
    background: white;
    border: 1px solid #e3e6ea !important;
    border-radius: 8px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.login-form__title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.login-form__fieldset {
    border: none;
}

/* Form groups */
.login-form__group {
    margin-bottom: 20px;
    display: block !important;
    border: none !important;
}

.login-form__group--checkbox {
    margin-bottom: 12px;
}

.login-form__label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    position: relative;
    background: transparent !important;
    padding: 0 !important;
}

/* Removed unnecessary wrappers: input/checkbox/submit/register */

/* Form controls */
.login-form__input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out;
    height: auto;
    max-width: 100%;
}

.login-form__input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
}

/* Buttons */
.login-form__button {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.login-form__button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-form__button--primary {
    color: #fff;
    background-color: #066AAF;
    border-color: #066AAF;
}

.login-form__button--primary:hover:not(:disabled) {
    background-color: #055C92;
    border-color: #055C92;
    color: #fff;
}

.login-form__button--secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.login-form__button--secondary:hover:not(:disabled) {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
}

.login-form__button--full {
    display: block;
    width: 100%;
}

/* Error messages */
.login-form__error {
    font-weight: 300;
    font-size: 12px;
    color: #dc3545;
    float: right;
}

.login-form__error--hide {
    display: none !important;
}

.login-form__error-message {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.login-form__error-message--hide {
    display: none !important;
}

/* Success message */
.login-form__success-message {
    margin-top: 12px;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.login-form__success-message--hide {
    display: none !important;
}

/* Checkboxes */
.login-form__checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.login-form__checkbox {
    margin-right: 8px;
    cursor: pointer;
}

/* Links */
.login-form__links {
    text-align: center;
    margin-bottom: 20px;
}

.login-form__link {
    color: #066AAF;
    text-decoration: none;
    font-size: 14px;
}

.login-form__link:hover {
    color: #055C92;
    text-decoration: underline;
}

.login-form__link--forgot {
    display: inline-block;
}

/* Divider section */
.login-form__divider {
    position: relative;
    margin: 25px 0 15px;
    text-align: center;
}

.login-form__divider-text {
    background-color: white;
    padding: 0 10px;
    display: inline-block;
    position: relative;
    z-index: 1;
    color: #6c757d;
    font-size: 14px;
}

.login-form__divider-line {
    position: absolute;
    height: 1px;
    background: #dee2e6;
    width: 100%;
    top: 50%;
    left: 0;
    z-index: 0;
}

/* Utility classes */
.hide {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .login-form {
        padding: 20px 15px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .login-form__title {
        font-size: 24px;
    }
}

/* Backwards compatibility for existing sm-login wrapper */
.sm-login .login-container,
.sm-login .login-form {
    /* Styles will apply whether wrapped in sm-login or not */
}
