:root {
    --primary: #800000;
    --secondary: #FAEBD7;
    --text: #333333;
    --highlight: #5D2F6E;
    --bg-light: #f4f7f6;
    --button-hover: #993333;
    --error: #e74c3c;
    --success: #2ecc71;
}

/* Theme variations */
[data-theme="maroon"] {
    --primary: #800000;
    --secondary: #faebd7;
    --text: #333333;
    --accent: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --border: rgba(0, 0, 0, 0.1);
    --light-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="royal"] {
    --primary: #1e3a8a;
    --secondary: #facc15;
    --accent: #ffffff;
    --text: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --border: rgba(0, 0, 0, 0.1);
    --light-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="forest"] {
    --primary: #2f4f4f;
    --secondary: #e8f0fe;
    --text: #2c3e50;
    --accent: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --border: rgba(0, 0, 0, 0.1);
    --light-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text);
    min-height: 100vh;
    font-size: 16px;
    background-image: linear-gradient(135deg, rgba(250, 235, 215, 0.3) 0%, rgba(128, 0, 0, 0.1) 100%);
    background-attachment: fixed;
}

/* Header and Logo */
.header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Main Content Styles */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 40px;
}

.form-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 550px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: var(--text);
    opacity: 0.8;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group .input-icon {
    position: absolute;
    left: 10px;
    top: 38px;
    color: #888;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.form-group .hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

.form-group .error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.error input, .form-group.error select {
    border-color: var(--error);
}

.form-group.error .error {
    display: block;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 12px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.forgot-password a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary);
    color: var(--text);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, transform 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.submit-button i {
    margin-right: 8px;
}

/* Hover effect */
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(128, 0, 0, 0.2);
}

/* Active / Clicked State */
.submit-button.active {
    background-color: var(--primary);
    color: white;
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.toggle-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e1e1;
    animation: fadeIn 0.5s ease;
}

.toggle-container p {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.toggle-button {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background-color: var(--primary);
    color: white;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Social Login */
.social-login {
    margin: 1.5rem 0;
    text-align: center;
}

.social-login p {
    position: relative;
    margin-bottom: 1rem;
    color: #777;
}

.social-login p::before, .social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #e1e1e1;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.social-login-button.google {
    color: #DB4437;
}

.social-login-button.facebook {
    color: #4267B2;
}

.social-login-button.linkedin {
    color: #0077B5;
}

/* Admin button */
.admin-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    display: flex;
    align-items: center;
}

.admin-button i {
    margin-right: 8px;
}

.admin-button:hover {
    background-color: #7a1f5c;
    box-shadow: 0 4px 12px rgba(93, 47, 110, 0.2);
}

/* Password strength meter */
.password-strength {
    margin-top: 5px;
    height: 5px;
    border-radius: 3px;
    background-color: #eee;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #666;
}

/* Two-column layout for larger forms */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        margin: 20px;
        max-width: 100%;
    }

    .form-row .form-group {
        flex: 1 1 100%;
    }

    .header {
        padding: 15px;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .admin-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
        margin: 10px;
        border-radius: 8px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .form-group input, .form-group select {
        padding: 0.8rem 0.8rem 0.8rem 2.2rem;
    }

    .logo img {
        height: 35px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    background-color: white;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* Custom checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fafafa;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #f0f0f0;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Loading animation */
.loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Toast Container Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 100%;
}

/* Toast Base Styles */
.toast {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    max-width: 400px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.toast.active {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Content Layout */
.toast-content {
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.toast-content i {
    margin-right: 12px;
    font-size: 20px;
}

.toast .message {
    flex: 1;
}

.toast .text-1 {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.toast .text-2 {
    display: block;
    color: #555;
    font-size: 0.9em;
}

/* Close Button Styles */
.toast .close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast .close:hover {
    opacity: 1;
}

/* Progress Bar Styles */
.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    transition: width 5s linear;
}

/* Toast Type-Specific Styles */
.toast-success i, .toast-success .progress { color: #4CAF50; background-color: #4CAF50; }
.toast-error i, .toast-error .progress { color: #F44336; background-color: #F44336; }
.toast-warning i, .toast-warning .progress { color: #FFC107; background-color: #FFC107; }
.toast-info i, .toast-info .progress { color: #2196F3; background-color: #2196F3; }

/* Animation for toasts */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
    .toast-container {
        right: 10px;
        left: 10px;
        align-items: stretch;
    }

    .toast {
        max-width: 100%;
    }
}
.logo-text a {
    text-decoration: none; /* Removes the underline */
    color: var(--primary); /* Change this to your preferred color */
    font-weight: bold;
}

.logo-text a:hover {
    color: var(--button-hover); /* Change the hover color if needed */
}

/* Add these styles to your CSS file */

/* OTP Input Styling */
#otpInput {
    letter-spacing: 4px;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

/* Success and Error Messages */
.error {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.1);
    border-left: 3px solid #e53935;
    padding: 10px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    display: none;
}

.success {
    color: #43a047;
    background-color: rgba(67, 160, 71, 0.1);
    border-left: 3px solid #43a047;
    padding: 10px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    display: none;
}

/* Resend OTP Link */
.resend-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    text-decoration: underline;
}

.link-button:hover {
    color: var(--button-hover);
}

.link-button:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* Success Message Container */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #43a047;
    margin-bottom: 20px;
}

.success-message h2 {
    color: #333;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
}
/* Add this to your login.css file */

.hidden {
    display: none;
  }

/* OTP input styling */
#otpCode {
    letter-spacing: 0.25em;
    font-size: 1.2em;
    text-align: center;
}

/* Password strength styling for reset password */
#resetPasswordStrengthMeter {
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
}

#resetPasswordStrengthMeter.weak {
    background-color: #ff4d4d;
    width: 33%;
}

#resetPasswordStrengthMeter.medium {
    background-color: #ffc107;
    width: 66%;
}

#resetPasswordStrengthMeter.strong {
    background-color: #4caf50;
    width: 100%;
}

#resetPasswordStrengthText {
    font-size: 12px;
    margin-top: 4px;
    color: #666;
}

#resetPasswordStrengthText.weak {
    color: #ff4d4d;
}

#resetPasswordStrengthText.medium {
    color: #ffc107;
}

#resetPasswordStrengthText.strong {
    color: #4caf50;
}

/* Toast notification styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background-color: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slide-in 0.3s ease forwards;
    position: relative;
}

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid #2196f3;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast i {
    font-size: 18px;
}

.toast.success i {
    color: #4caf50;
}

.toast.error i {
    color: #f44336;
}

.toast.info i {
    color: #2196f3;
}

.toast.warning i {
    color: #ff9800;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: auto;
}

.toast-close:hover {
    color: #333;
}

.toast.fade-out {
    animation: fade-out 0.3s ease forwards;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading animation inside buttons */
.loading {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}