.login-page-wrapper {
    background: linear-gradient(135deg, rgb(37, 99, 235) 0%, rgb(6, 182, 212) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem;
}

.login-page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px
}

.login-page-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 48px;
}

.login-page-subheading {
    margin: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.login-page-subheading a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.95rem;
}

.login-page-subheading a:hover {
    text-decoration: none;
}

.login-options-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* Enable transitions */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.login-option-separator {
    font-size: 1rem;
    color: #fff;
}

/* Email Form View Styles */
.login-email-wrapper {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-form-stack {
    display: flex;
    flex-direction: column;
    width: 320px;
}

.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-align: left;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.login-input {
    width: 100%;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #ADADAD;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    line-height: 2;
}

.login-input::placeholder {
    color: #999;
    opacity: 1;
}

.login-input:focus {
    border-color: #3b82f6;
    /* Blue focus */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field-error {
    color: #ff4d4f;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    text-align: left;
    display: block;
}

.login-input.error {
    border: 1px solid #DC2626;
}

.validation-error-msg {
    background: #DC2626;
    color: #fff;
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 3px;
    font-weight: 400;
    display: none;
    width: 100%;
}

#password-strength-box,
.login-message {
    background: #ffffff;
    padding: 6px 8px;
    border-radius: 8px;
    color: #333;
    margin-top: 6px;
    position: relative;
    z-index: 10;
    font-size: 12px;
    font-weight: 400;
    display: block;
}

#password-strength-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
}

#password-strength-box p {
    margin: 0 0 4px;
    font-weight: 400;
}

#password-strength-box ul {
    margin: 0;
    padding-left: 1.2em;
    text-align: left;
    list-style-position: outside;
}

#password-strength-box li {
    margin-bottom: 4px;
    transition: color 0.2s;
    font-weight: 400;
}

#password-strength-box li.invalid {
    color: #DC2626;
}

#password-strength-box li.valid {
    color: #2ecc71;
}

.terms-checkbox-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.terms-checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
    color: #F9FAFB;
    cursor: pointer;
}

.terms-checkbox-group label a {
    color: #DBEAFE;
    text-decoration: underline;
}

.terms-checkbox-group label a:hover {
    color: #FFFFFF;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    /* Grey eye icon */
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background: #fff;
    /* White bg for unchecked */
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Square with slight radius */
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-me:hover .checkbox-custom {
    border-color: #3b82f6;
}

.remember-me input:checked+.checkbox-custom {
    background: #0B5ED7;
    /* Blue background checked */
    border-color: #0B5ED7;
}

/* White Checkmark */
.remember-me input:checked+.checkbox-custom::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.label-text {
    color: #fff;
    font-weight: 500;
}

.forgot-link {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-option-button {
    border: none;
    border-radius: 99px;
    padding: 0.38rem 0.38rem 0.38rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    background: #fff;
    width: 320px;
    height: 47px;
    line-height: 1.75;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}

.login-option-button:hover {
    transform: scale(1.02);
}

.submit-btn {
    width: 100%;
    margin-bottom: 15px;
    background: #fff;
    color: #121212;
    font-weight: 500;
    height: 42px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.88rem;
}

.submit-btn:hover {
    background: #d1d5db;
    color: #1f2937;
    transform: none;
}

.back-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.back-link:hover {
    color: #fff;
}

.login-message.error {
    color: #DC2626;
}

.login-message.success {
    color: #69f0ae;
}

.login-message,
.validation-error-msg {
    display: none;
}

.btn-disabled {
    background-color: #cccccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}