/* Modern Login Form Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    position: relative;
}

.language-selector {
    position: absolute;
    top: 12px;
    right: 12px;
}

.language-dropdown {
    background: transparent;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
    margin-top: 28px;
    padding: 0 20px;
}

.logo-link {
    display: inline-block;
    margin-bottom: 28px;
}

.login-logo {
    max-height: 55px;
    max-width: 200px;
    height: auto;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.login-description {
    font-size: 14px;
    color: #6b7280;
    margin: 12px 0 0 0;
    line-height: 1.4;
}

.alt-recovery-link {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
input.form-input:focus {
    background-color: white;
}

.form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.eye-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.checkbox-group {
    margin: 4px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-button,
button.login-button {
    width: 100%;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.login-button:hover,
button.login-button:hover {
    transform: translateY(-1px);
}

.login-button:active,
button.login-button:active {
    transform: translateY(0);
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.forgot-password,
.about-service {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 20px;
        margin: 8px;
        border-radius: 10px;
    }
    
    .login-title {
        font-size: 16px;
    }
    
    .language-selector {
        position: static;
        text-align: center;
        margin-bottom: 16px;
    }
}

/* Legacy styles for compatibility */
.bs-callout {
    margin: 0 0 20px 0;
    padding: 15px 30px 15px 15px;
    border-left: 5px solid #eee;
}
.bs-callout h4 {
    margin-top: 0;
}
.bs-callout p:last-child {
    margin-bottom: 0;
}
.bs-callout code, #messengerPage .bs-callout .highlight {
    background-color: #fff;
}
/* Themes for different contexts */
.bs-callout-danger {
    background-color: #fcf2f2;
    border-color: #dFb5b4;
}
.bs-callout-warning {
    background-color: #fefbed;
    border-color: #f1e7bc;
}
.bs-callout-info {
    background-color: white;
}
.bs-callout-info h4 {
    color: #17a2b8;
}

.bs-callout-success {
    background-color: white;
    border-color: #00688e;
}
.bs-callout-success h4 {
    color: #00688e;
}
.bs-callout input {
    background-color: #e5e8eb;
}
.bs-callout textarea {
    background-color: #e5e8eb;
}
.bs-callout select {
    background-color: #e5e8eb;
}


#rolePage {
    padding-top: 40px;
    padding-bottom: 40px;
    width: 100%;
    min-height: 100%;
    height: 100%;

}
#rolePage h2 {
  color: #C0E5F2;
}


#loginPage, #loadingPage {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcentered {
    max-width: 50%;
}
#loginPage .form-signin-heading {
  color: #333;
}
.form-signin {
    padding: 40px;
    margin: 0 auto;
    background-color: white;
    max-width: 427px;
}
#loginPage .form-signin .form-signin-heading, .form-signin .checkbox {
    margin-bottom: 30px;
}
#loginPage .form-signin .checkbox {
    font-weight: normal;
}
#loginPage .form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}

#loginPage .form-signin .form-control:focus {
    z-index: 2;
}
#loginPage .form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

#inputEmail {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
}

#inputPassword {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.form-signin-heading-white {
    color:white;
}


.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .100em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.password {
    position: relative;
}
.password-control {
    position: absolute;
    top: 20%;
    right: 10px;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 5px;
    opacity: 0.7;
    background: url("/ico/show.svg") 0 0 no-repeat;
}

.password-control.view {
    background: url("/ico/hide.svg") 0 0 no-repeat;
}
