:root {
    --primary-color: #008600;      /* Main theme color */
    --secondary-color: #007A33;    /* Complementary secondary */
    --accent-color: #F8F9FA;       /* Light background */
    --text-color: #2C3E50;         /* Dark text */
    --gray-color: #f0f0f0;         /* Light gray */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --link-hover: #006d29;
    --footer-bg: #004d00;    /* Dark green for footer background */
    --footer-link: #66BB6A;
}

.custom-swal-popup {
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.swal2-styled.swal2-confirm{
    border-radius: 0.5rem;
}

.custom-swal2-container {
    z-index: 10001 !important;
    backdrop-filter: blur(5px);
    transition: 0.5s ease, color 0.5s ease;
}
/* ===== Reduce SweetAlert Icon Size ===== */
.swal2-icon {
    width: 50px !important;  /* Adjust width */
    height: 50px !important; /* Adjust height */
    line-height: 10px !important; /* Vertically center the icon */
}

/* Adjust specific icons if needed */
.swal2-success, .swal2-error, .swal2-warning, .swal2-info {
    width: 50px !important;
    height: 50px !important;
}

/* Adjust success checkmark */
.swal2-success-circular-line-left,
.swal2-success-circular-line-right,
.swal2-success-fix {
    width: 25px !important;
    height: 25px !important;
}

.swal2-success-line-tip {
    width: 15px !important;
    height: 4px !important;
    top: 30px !important;
    left: 8px !important;
}

.swal2-success-line-long {
    width: 30px !important;
    height: 4px !important;
    top: 25px !important;
    left: 16px !important;
}

/* Smaller error icon cross */
.swal2-x-mark-line-right,
.swal2-x-mark-line-left {
    width: 25px !important;
    height: 4px !important;
    top: 25px !important;
}

body.swal2-shown,
html.swal2-shown {
    overflow: hidden !important; /* Prevent page scroll */
}

body.swal2-height-auto,
html.swal2-height-auto {
    height: 100% !important; /* Prevent layout shifts */
}

body{
    background-image: none;
}
/* ===== AUTH LAYOUT (60%-40% Split) ===== */
.auth-body {
    display: flex;
    height: 100vh;
    margin: 0;
    background-color: var(--background-light);
    font-family: 'Verdana', sans-serif;
}

.auth-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Section (Form - 60%) */
.auth-left {
    flex: 0.7;
    background-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

/* Right Section (Background Image - 40%) */
.auth-right {
    flex: 0.3;
    background-image: url('../../images/greenwichbig.png');
    background-size: cover; /* Force the image to stretch across width and height */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position-x: left; /* Centers the image */
    background-position-y: bottom; /* Centers the image */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: -10px 0 200px rgba(0, 0, 0, 0.2); /* Left shadow */
}

.auth-logo {
    margin-top: 1rem;
}

.auth-logo-img {
    width: 200px;
}

/* ===== FORM STYLING ===== */
.auth-form {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.reg-form {
    max-width: 1000px;
}

/* Add padding inside the scrollable area */
.register {
    max-height: 70vh;
    overflow-y: scroll;
    padding-right: 1rem; /* Adds space between content and scrollbar */
    padding-left: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Custom Scrollbar Styles for Modern Browsers */
.register::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.register::-webkit-scrollbar-track {
    background: var(--gray-color); /* Light gray track */
    border-radius: 5px;
}

.register::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* Main theme color */
    border-radius: 5px;
    border: 2px solid var(--gray-color);
}

.register::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color); /* Darker green on hover */
}

/* Firefox scrollbar styles */
.register {
    scrollbar-width: thin; /* Always show scrollbar */
    scrollbar-color: var(--primary-color) var(--gray-color);
}

.form-group {
    margin-bottom: 10px;
    padding: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-color);
    border-radius: 0.5rem;
    box-sizing: border-box;
    user-select: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
    .auth-form {
        padding: 2rem;
    }

    .form-group {
        padding: 0.5rem;
    }

    .form-input {
        padding: 0.65rem 0.9rem;
    }
}

.form-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    user-select: none;
}

.form-subtitle {
    color: var(--text-color);
    margin-bottom: 2rem;
    user-select: none;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    user-select: none;
}
.form-instruction {
    margin-bottom: 20px;
    text-align: center;
}

.email-display {
    background: linear-gradient(135deg, rgba(0, 134, 0, 0.7), rgba(0,122,51,0.7));
    color: white;
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 20px;
    user-select: none;
}

.email-display i {
    margin-right: 8px;
}

/* ===== BUTTON STYLING ===== */
.button-group{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1rem;
}


.btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    box-sizing: border-box;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Redirect Link */
.redirect-link {
    margin-top: 1rem;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE BEHAVIOR ===== */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column; /* Stack vertically with form BELOW the image */
    }
    .btn{
    }
    .auth-left {
        flex: 1;
        padding: 2rem;
        order: 2; /* Form appears below */
    }

    .auth-right {
        flex: 0.15;
        min-height: 10vh;
        order: 1; /* Image appears above */
        box-shadow: 0 10px 200px rgba(0, 0, 0, 0.2); /* Left shadow */
    }

    .auth-logo-img {
        width: 180px;
        align-self: center;
    }

    .auth-form {
        padding: 1.5rem;
    }

}

@media (max-width: 480px) {

    .register {
        max-height: 60vh;
    }
    .auth-logo {
        top: 1rem;
        right: 1rem;
    }

    .auth-logo-img {
        width: 150px;
    }

    .auth-form {
        padding: 1rem;
    }

    .form-input {
        padding: 0.5rem 0.75rem;
    }

    .btn {
        padding: 0.5rem;
    }
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
}

.loader {
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.span_error {
    display: block;
    margin-top: 5px;
    color: #e74c3c;
}

.resend-section {
    margin-top: 1rem;
    text-align: center;
}


:root {
    --theme-green: #008600 !important;
    --theme-green-dark: #006600 !important;
    --theme-green-darker: #005000 !important;
    --theme-green-light: #cce6cc !important;
    --theme-green-text: #ffffff !important;
}

/* ===== BASE BUTTON ===== */
.btn {
    color: var(--theme-green-text) !important;
    background-color: var(--theme-green) !important;
    border: 1px solid var(--theme-green-dark) !important;
    box-shadow: 0 2px 6px rgba(0, 134, 0, 0.15) !important;
    transition: all 0.2s ease-in-out !important;
}

/* ===== HOVER STATE ===== */
.btn:hover {
    background-color: var(--theme-green-dark) !important;
    border-color: var(--theme-green-dark) !important;
    color: var(--theme-green-text) !important;
    box-shadow: 0 4px 8px rgba(0, 102, 0, 0.25) !important;
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.btn:focus-visible,
.btn:focus-within {
    outline: 3px solid var(--theme-green-light) !important;
    outline-offset: 2px !important;
    background-color: var(--theme-green-dark) !important;
    border-color: var(--theme-green-dark) !important;
    box-shadow:
            0 0 0 4px rgba(204, 230, 204, 0.7), 0 4px 8px rgba(0, 102, 0, 0.25) !important;
}

/* ===== ACTIVE STATE ===== */
.btn:active {
    background-color: var(--theme-green-darker) !important;
    border-color: #004400 !important;
    color: var(--theme-green-text) !important;
    box-shadow:
            inset 0 2px 4px rgba(0, 80, 0, 0.3), 0 2px 4px rgba(0, 102, 0, 0.2) !important;
}

/* ===== TARGET STATE (ANCHOR LINKS) ===== */
.btn:target {
    background-color: var(--theme-green-dark) !important;
    border-color: var(--theme-green-dark) !important;
    color: var(--theme-green-text) !important;
}

/* ===== DISABLED STATE ===== */
.btn:disabled,
.btn.disabled {
    background-color: var(--theme-green-light) !important;
    border-color: var(--theme-green-light) !important;
    color: #444 !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
}

/* ===== OUTLINE BUTTONS ===== */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-secondary {
    background-color: transparent !important;
    color: var(--theme-green) !important;
    border: 1px solid var(--theme-green) !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-secondary:hover {
    background-color: var(--theme-green) !important;
    color: var(--theme-green-text) !important;
    border-color: var(--theme-green-dark) !important;
    box-shadow: 0 4px 8px rgba(0, 102, 0, 0.25) !important;
}

.btn-outline-primary:focus,
.btn-outline-success:focus,
.btn-outline-secondary:focus {
    outline: 3px solid var(--theme-green-light) !important;
    outline-offset: 2px !important;
}

/* ===== CUSTOM ELEVATED VARIANT ===== */
.btn-elevated {
    box-shadow: 0 6px 16px rgba(0, 134, 0, 0.2) !important;
}

/* Optional: Rounded buttons */
.btn-rounded {
    border-radius: 30px !important;
}

.register {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.button-group {
    grid-column: 1 / -1; /* Span all columns for button alignment */
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.password-group {
    grid-column: 1 / -1;
}


.auth-container {
    zoom: 0.85;            /* Quick, broad shrink (non-standard but widely supported on desktop) */
}
/* Optional Safari fallback */
@supports not (zoom: 1) {
    .auth-container {
        transform: scale(0.85);
        transform-origin: top left;
        width: 111.111%;    /* compensate for scale to keep layout width */
    }
}