/* Base styles */
body {
    /*background-color: #efefef;*/
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

/* Container styles */
.login-container {
    max-width: 1000px;
    margin: 80px auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.login-header {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.login-header .logo {
    height: 80px;
}

.login-header p {
    color: #666;
    font-size: 18px;
    width: 100%;
    text-align: center;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 0;
}

.header-divider {
    width: 50%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px auto;
    border-radius: 1.5px;
}

/* Form styles */
.form-container {
    /*max-width: 800px;*/
    /*margin: 0 auto;*/
    /*padding: 20px;*/
    /*min-width: 600px;*/
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus {
    border-color: #4f77a3;
    box-shadow: 0 0 0 2px rgba(79, 119, 163, 0.2);
    outline: none;
}

.form-group .input-icon-container {
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.password-requirements {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.password-strength {
    height: 5px;
    background-color: #eee;
    margin-top: 5px;
    border-radius: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    background-color: #e74c3c;
    transition: all 0.3s ease;
}












/* User Profile Styles */
.user-profile-container {
    max-width: 800px;
}

.profile-section {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: #4f77a3;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Readonly inputs */
input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
    border-color: #ddd;
}

/* Password change section */
.password-change-container {
    margin-top: 10px;
}

.password-change-button {
    display: flex;
    align-items: center;
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 10px;
    padding: 12px 15px;
    color: #4f77a3;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.password-change-button:hover {
    background-color: #e0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.password-change-button.active {
    background-color: #4f77a3;
    color: white;
    border-color: #3a5d85;
}

.password-icon {
    margin-right: 10px;
    font-size: 18px;
}

.password-change-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}

.password-change-form.show {
    display: block;
}



/* Two-factor authentication section */
.two-factor-container {
    margin-top: 10px;
}

.two-factor-button {
    display: flex;
    align-items: center;
    background-color: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 10px;
    padding: 12px 15px;
    color: #4f77a3;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.two-factor-button:hover {
    background-color: #e0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.two-factor-button.active {
    background-color: #4f77a3;
    color: white;
    border-color: #3a5d85;
}

.two-factor-icon {
    margin-right: 10px;
    font-size: 18px;
}

.two-factor-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease;
}



.two-factor-form.show {
    display: block;
}

.two-factor-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.two-factor-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

.two-factor-options img
{
    margin-left: 200px;
}

.option-container
{
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: -webkit-fill-available;
}

.two-factor-options a
{
    margin-left: 200px;
    cursor: pointer;
    color: #4f77a3!important;
    font-weight: bold;
    border: 1px solid;
    padding: 4px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}
.two-factor-options a:hover {
    background-color: #e0f0ff;
    color: #3a5d85;
}

@media (max-width: 550px) {
    .two-factor-options img {
        margin-left: 45px;
    }
    .two-factor-options a {
        margin-left: 45px;
    }
    
}

.two-factor-option:hover {
    background-color: #f0f0f0;
}

.two-factor-option input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.two-factor-option label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.cancel-button, .save-button {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-button {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

.save-button {
    background-color: #4f77a3;
    color: white;
    border: none;
}

.save-button:hover {
    background-color: #3a5d85;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 900px) {
    .login-content {
        flex-direction: column;
    }

    .login-explanation {
        min-height: 200px;
    }

    .login-container {
        flex-direction: column;
    }

    .form-container {
        width: 100%;
        padding-right: 0;
        order: 1; /* Keep form first in mobile view */
    }
}

@media (max-width: 600px) {
    .login-container {
        margin: 15px;
        padding: 20px;
    }

    .login-header {
        gap: 15px;
    }

    .login-header .logo {
        height: 70px; /* Adjusted for responsive design */
    }

    .login-header p {
        font-size: 16px;
    }

    .form-container {
        padding: 15px;
    }

    .profile-section {
        padding: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cancel-button, .save-button {
        width: 100%;
    }
}

.id-input {
    border: 0px !important;
}



/* Verification Sub-screen Styles */
.verification-subscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.verification-subscreen {
    /*background-color: white;*/
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /*width: 400px;*/
    max-width: 90%;
    padding: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.verification-subscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.verification-subscreen-header h3 {
    margin: 0;
    color: #333;
}

.verification-subscreen-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.verification-subscreen .info-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.verification-subscreen .info-box h4 {
    margin-top: 0;
    color: #333;
}

.verification-subscreen .form-group {
    margin-bottom: 20px;
}

.verification-subscreen label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.verification-subscreen .input-container {
    position: relative;
}

.verification-subscreen input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.verification-subscreen .input-container span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.verification-subscreen #verification-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.verification-subscreen button {
    width: 100%;
    padding: 12px;
    background-color: rgb(79, 119, 163);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.verification-subscreen button:hover {
    background-color: #2980b9;
}

.verification-subscreen button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.verification-subscreen a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.verification-subscreen a:hover {
    text-decoration: underline;
}