/* @author Vanessa Leigh Rupertus
CSS for Login, Register, Change-Password, Recover-Password, Validate-Email*/

ul { /* for flashed messages */
    list-style-type: none;
}

input[type="checkbox"] { /* Remember Me checkbox */
    accent-color: red;
    transform: scale(1.5);
    display: inline-block;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f4fc;
    font-family: 'Lato', sans-serif;
}

/* Centered Modal */
.modal-container {
    display: flex;
    width: 90%; /* Increase overall width to take up more screen space */
    max-width: 1200px; /* Larger max-width for bigger screens */
    height: 80vh; /* Increase height to 80% of the viewport */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Form Group Styling */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Input Fields */
.form-group input {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Padding to make space for the icon */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Ensures padding doesn't affect input width */
}

.form-group .fa {
    position: absolute;
    bottom: 12px; /* Adjust distance from bottom */
    left: 12px; /* Align closer to the left input field */
    color: #007bff; /* Icon color */
    font-size: 16px; /* Adjust icon size */
    pointer-events: none; /* Prevent interaction */
}

/* Input Focus State */
.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Adjust Labels */
.form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.login-box {
    flex: 1;
    padding: 50px; /* More padding for spacious design */
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}


.login-box h6 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}


.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #f1f9fd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login a {
    display: inline-block;
    margin: 5px;
    padding: 8px 20px;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.google-btn {
    background-color: #db4437;
}

.outlook-btn {
    background-color: #0072c6;
}

.extra-options {
    text-align: center;
    margin-top: 15px;
}

.extra-options a {
    margin: 0 10px;
    color: #007bff;
    text-decoration: none;
}

.pass-label {
    display: flex;
    font-size: 18px;
    line-height: 26px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Register Button */
.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.login-btn:hover {
    background-color: #0056b3;
}

/* Login Link */
.login-link {
    margin-top: 15px;
    text-align: center;
}

.login-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}


.login-line { /* for gray line between logo and text fields */
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.login-line::before, .login-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #aaa;
}

.login-line::before {
    margin-right: .25em;
}

.login-line::after {
    margin-left: .25em;
}

.login-spec { /* login-line inner text */
    color: #aaa;
    font-size: 1.2em;
    font-family: Roboto, sans-serif;
    font-weight: lighter;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.remember-me input {
    margin-right: 5px;
}


.extra-options a:hover {
    text-decoration: underline;
}

/*Specific to Registration Page CSS*/

.icon-change .fa {
    top: 60% !important;
}


.login-link {
    margin-top: 10px;
    font-size: 0.9em;
}

.login-link a {
    color: #007BFF;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.toggle-password {
    position: absolute;
    top: 60%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

#strengthMessage, #message {
    margin-top: 10px;
    font-size: 0.9em;
    color: red;
}

/* Custom radio buttons CSS */
.custom-radio {
    display: inline-flex;
    align-items: center;
    margin-right: 11rem;
}

.custom-radio input[type="radio"] {
    display: none;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    margin-right: 11rem;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-radio label {
    position: absolute;
    cursor: pointer;
    padding-left: 20px; /* Adjusted padding for smaller circle */
    margin-bottom: 0;
    font-size: 18px;
    user-select: none;
}

.custom-checkbox label {
    position: absolute;
    cursor: pointer;
    padding-left: 20px; /* Adjusted padding for smaller circle */
    margin-bottom: 0;
    font-size: 18px;
    user-select: none;
}

.custom-checkbox label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; /* Smaller outer circle */
    height: 12px; /* Smaller outer circle */
    border: 2px solid #007BFF;

    background: #fff;
}

.custom-radio label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; /* Smaller outer circle */
    height: 12px; /* Smaller outer circle */
    border: 2px solid #007BFF;
    border-radius: 50%;
    background: #fff;
}

.custom-checkbox input[type="checkbox"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; /* Smaller checked circle */
    height: 8px; /* Smaller checked circle */
    border-radius: 50%;
    background: #ff0000;
}

.custom-radio input[type="radio"]:checked + label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px; /* Smaller checked circle */
    height: 6px; /* Smaller checked circle */
    border-radius: 50%;
    background: #007BFF;
}

.input-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.social-login a {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.google-btn {
    background-color: #db4437;
}

.linkedin-btn {
    background-color: #0077b5;
}

.outlook-btn {
    background-color: #0078d4;
}

/* dash_head.css */

.side-by-side-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.side-by-side-buttons .option-btn {
    width: 48%; /* Each button takes up 48% of the available space */
    text-decoration: none;
    padding: 15px 10px;
    background-color: #007BFF;
    border-radius: 5px;
    font-size: 20px;
    font-family: Lato, sans-serif;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.side-by-side-buttons .option-btn:hover {
    background-color: #0056b3;
}

.side-by-side-buttons .disabled-btn {
    background-color: #ccc; /* Disabled button style */
    cursor: not-allowed;
}

/* Left Logo Modal */
.login-logo {
    flex: 1;
    background: white; /* Light blue background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    height: 100%; /* Full height of the container */
}

.login-logo img {
    max-width: 60%; /* Logo size - balanced look */
    height: auto;
    margin-bottom: 15px; /* Space below the logo */
}

.login-logo p {
    font-size: 14px; /* Small, readable font */
    color: #555; /* Dark gray for subtle contrast */
    line-height: 1.6; /* Improve readability */
    margin: 5px 0; /* Small spacing between lines */
}

.login-logo a {
    color: #007bff; /* Blue link color */
    text-decoration: none; /* Remove underline */
    font-weight: 600; /* Bold link for emphasis */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth animation */
}

.login-logo a:hover {
    color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05); /* Slight zoom effect */
    text-decoration: underline; /* Underline effect on hover */
}

.hidden {
    display: none;
}

.subscription-card {
    flex: 1;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.subscription-card:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
}

.subscription-card.selected {
    border-color: #007bff;
    background-color: #eaf4ff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.subscription-card.selected::after {
    content: '\2713';
    font-size: 20px;
    color: white;
    background: #007bff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.register-btns {
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-btns .register {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: 0.3s ease, transform 0.3s ease;
}

.register-btns .register:hover {
    background-color: #0056b3;
}

.fade-slide {
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none; /* ⛔ disables interactivity when hidden */
    visibility: hidden;
}

.fade-slide.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    pointer-events: auto;  /* ✅ restores interactivity */
    visibility: visible;
}

.validation-message {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    font-size: 0.9em;
    color: red;
}

.validation-message.show {
    opacity: 1;
    max-height: 60px; /* enough room for 2 lines */
    margin-top: 8px;
}

/* Override dashboard layout assumptions */
.modal-container .main-content {
    margin: 0;
    padding: 0;
    flex: 1;
}

/* Refine the table wrapper for modal */
.modal-container .projects {
    box-shadow: none;
    padding: 20px 30px;
    border-radius: 8px;
    border: none;
    width: 100%;
}

/* Center tabs and tighten spacing */
.modal-container .tab-container {
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.modal-container p {
    font-size: 0.9em;
}

/* Slightly smaller tab buttons for tighter space */
.modal-container .tab-btn {
    font-size: 0.8rem;
    padding: 10px 12px;
}

/* Center bottom buttons */
.modal-container .register-cart-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Table adjustments for cleaner modal display */
.modal-container .projects table th,
.modal-container .projects table td {
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
}

.modal-container .projects table th {
    background-color: #f0f3f9 !important;
}

/* Adjust buttons in rows */
.modal-container .projects .small-btns {
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
}

#toast-container > .toast {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 18px 12px 50px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 25px;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
}

.modal-content img.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.modal-btn {
    background-color: #203d91;
    color: white;
    padding: 12px;
    margin: 5px 0;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.skip-btn {
    background: none;
    border: none;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}

.demo-button {
    background-color: #007bff;
    color: white !important;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.demo-button:hover {
    background-color: #203d91;
}