/* --- Main Container for the Auth Form --- */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 155px); /* Adjust based on header/footer height */
}

.container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Adds a subtle edge to the glass */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* --- Tab-like buttons for Login/Sign Up --- */
.switch-buttons {
    display: flex;
    background-color: #e9ecef;
    border-radius: 25px;
    padding: 5px;
    margin-bottom: 2rem;
}

.switch-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-buttons button.active {
    background-color: #fff;
    color: #c2185b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* --- Form Styles --- */
.form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.form.active {
    display: flex;
}

.form h2 {
    margin-bottom: 1rem;
    color: #333;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus {
    outline: none;
    border-color: #c2185b;
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.2);
}

.password-container {
    position: relative;
}

.password-container i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #868e96;
}

.form button[type="submit"] {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #d6336c, #c2185b);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
    margin-top: 1rem; /* Add space above the button */
}

.form button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.4);
}

.form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.forgot-password {
    text-align: right;
    font-size: 0.9rem;
    color: #c2185b;
    text-decoration: none;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* --- Social Login Buttons --- */
.login-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.login-options button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.login-options button:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.login-options .google i { color: #DB4437; }
.login-options .facebook i { color: #4267B2; }

/* --- Password Strength Meter --- */
.password-strength-meter {
    display: flex;
    height: 5px;
    gap: 2px;
    margin-top: 5px;
}

.strength-bar {
    flex: 1;
    background-color: #e9ecef;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.strength-bar.weak { background-color: #dc3545; }
.strength-bar.medium { background-color: #ffc107; }
.strength-bar.strong { background-color: #28a745; }

.password-strength-text {
    font-size: 0.8rem;
    text-align: right;
    color: #6c757d;
    height: 1em; /* Reserve space to prevent layout shift */
}

/* --- Legal Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1010;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-overlay.visible {
    display: flex;
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.modal-header h2 {
    margin: 0;
    color: #333;
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
}
.modal-body-content {
    overflow-y: auto;
    line-height: 1.6;
}
.modal-body-content h3 {
    color: #c2185b;
    margin-top: 1.5rem;
}