/* Login Page Specific Styles */

.validation-summary-errors ul {
    padding-left: 15px;
    margin-bottom: 0;
}

/* Header styles */
.app-header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(70, 30, 100, 0.95) 0%, rgba(70, 30, 100, 0.85) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

/* Adjust header position when training banner is present */
body.has-training-banner .app-header {
    top: 52px;
    /* Height of training banner */
}

body:not(.has-training-banner) .app-header {
    top: 0;
}

.main-header-container {
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content-left {
    height: 100%;
    display: flex;
    align-items: center;
}

.horizontal-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.terms-links {
    text-align: center;
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-top: 1rem;
}

.terms-links a {
    color: #ffffff;
    text-decoration: underline;
}

.terms-links a:hover {
    color: #cccccc;
}

.signin-container {
    padding-left: 3rem;
    padding-right: 3rem;
    align-items: center;
}

/* Adjust padding based on training banner presence */
body.has-training-banner .signin-container {
    padding-top: 122px;
    /* 52px banner + 70px header */
}

body:not(.has-training-banner) .signin-container {
    padding-top: 70px;
    /* Just header */
}

.signin-left {
    position: relative;
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    padding: 20px 30px;
    background-color: rgba(70, 30, 100, 0.6);
    border-radius: 6px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
}

.signin-form-container {
    width: 100%;
}

.signin-right {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.field-validation-error {
    margin-top: 10px;
}

/* Alert styling for blur background */
.alert {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-success {
    background-color: rgba(200, 255, 200, 0.9);
    border-color: rgba(144, 238, 144, 0.5);
}

.alert-danger {
    background-color: rgba(255, 200, 200, 0.9);
    border-color: rgba(255, 99, 71, 0.5);
}

/* Password Toggle Styles */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #495057;
}

.password-toggle-btn:focus {
    outline: none;
}

.btn-signin {
    margin-top: 0;
}

.btn-register {
    background: rgba(93, 93, 242, 1);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    margin-top: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-register:hover {
    background: #461E64;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 30, 100, 0.3);
}

.btn-microsoft {
    background: #2f2f2f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-microsoft:hover {
    background: #242424;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.form-check-input:checked {
    background-color: #5D5DF2;
    border-color: #5D5DF2;
}

.form-check-input:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2);
}

.form-check-label {
    font-size: 0.9rem;
    color: #ffffff;
}

.forgot-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none !important;
    font-weight: 500 !important;
}

.signup-link a:hover {
    color: var(--primary08);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .signin-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Modal Account Type Cards Hover Effect */
.account-type-card:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal-content {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
