/* Override base template styles for full page signup - LIGHT MODE */
    body {
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh !important;
    }

    .navbar {
        display: none !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    main.container {
        margin: 0 !important;
        padding: 2rem !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 4rem !important;
    }

    /* Back to Home Button - Light Mode */
    .back-to-home {
        position: fixed;
        top: 30px;
        left: 30px;
        z-index: 2000;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        padding: 12px 24px;
        color: #1e293b;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .back-to-home:hover {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.15);
        color: #ea580c;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .back-to-home i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .back-to-home:hover i {
        transform: translateX(-3px);
    }

    /* Container for notifications and form */
    .signup-container {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    /* Enhanced signup card - Light Mode */
    .signup-card {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        max-width: 600px;
        width: 100%;
        padding: 3rem 2.5rem;
        color: #1e293b;
        margin-top: 1rem;
    }

    .signup-title {
        color: #1e3a8a;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .signup-subtitle {
        color: #64748b;
        text-align: center;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

    /* Form styling - Light Mode */
    .form-control {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        color: #1e293b;
        padding: 12px 16px;
    }

    .form-control:focus {
        background: #ffffff;
        border-color: #ea580c;
        box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.15);
        color: #1e293b;
    }

    .form-control::placeholder {
        color: #94a3b8;
    }

    .form-label {
        color: #1e293b;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .btn-primary {
        background: #ea580c;
        border: none;
        border-radius: 12px;
        padding: 12px 24px;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        width: 100%;
        margin-top: 1rem;
        color: #fff;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
        background: #c2410c;
    }

    .login-link {
        text-align: center;
        margin-top: 2rem;
        color: #64748b;
    }

    .login-link a {
        color: #1e3a8a;
        text-decoration: underline;
        font-weight: 600;
    }

    .login-link a:hover {
        color: #ea580c;
        text-decoration: none;
    }

    /* Help text styling - Light Mode */
    .text-muted,
    .form-text {
        color: #64748b !important;
    }

    /* Password requirements list - Light Mode */
    ul.form-text {
        color: #64748b !important;
    }

    ul.form-text li {
        color: #64748b !important;
    }

    /* Terms and Conditions styling - Light Mode */
    .form-check {
        margin: 1rem 0;
        display: flex;
        align-items: center;
    }

    .form-check-input {
        width: 1rem;
        height: 1rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 3px;
        margin-right: 0.75rem;
        margin-top: 0;
        flex-shrink: 0;
    }

    .form-check-input:checked {
        background-color: #ea580c;
        border-color: #ea580c;
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
    }

    .form-check-label {
        color: #1e293b;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .terms-links,
    .terms-modal-trigger,
    .privacy-modal-trigger {
        color: #1e3a8a;
        text-decoration: underline;
        cursor: pointer;
        font-weight: 600;
    }

    .terms-links:hover,
    .terms-modal-trigger:hover,
    .privacy-modal-trigger:hover {
        color: #ea580c;
        text-decoration: none;
    }

    /* Modal styling - Fix z-index and backdrop issues */
    /* CRITICAL: Backdrop must be BELOW modal and NOT block pointer events to modal */
    .modal-backdrop {
        z-index: 1040 !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .modal-backdrop.fade {
        z-index: 1040 !important;
    }

    .modal-backdrop.show {
        opacity: 0.5 !important;
        z-index: 1040 !important;
    }

    /* Modal must be ABOVE backdrop */
    .modal {
        z-index: 1055 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .modal.fade {
        z-index: 1055 !important;
    }

    .modal.show {
        z-index: 1055 !important;
        display: block !important;
    }

    /* Modal dialog and content must be above everything and interactive */
    .modal-dialog {
        z-index: 1056 !important;
        position: relative !important;
        margin: 1.75rem auto !important;
        pointer-events: auto !important;
    }

    .modal-content {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        color: #1e293b;
        z-index: 1057 !important;
        position: relative !important;
        pointer-events: auto !important;
    }

    /* Ensure all interactive elements in modal are clickable and scrollable */
    .modal-header {
        position: relative !important;
        z-index: 1058 !important;
        pointer-events: auto !important;
    }

    .modal-body {
        position: relative !important;
        z-index: 1058 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto !important;
        max-height: 60vh;
    }

    .modal-footer {
        position: relative !important;
        z-index: 1058 !important;
        pointer-events: auto !important;
    }

    /* Ensure buttons and links are clickable */
    .modal button,
    .modal a,
    .modal [data-bs-dismiss] {
        pointer-events: auto !important;
        z-index: 1059 !important;
        position: relative;
    }

    /* CUSTOM MODAL STYLES - Completely independent of Bootstrap */
    .custom-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
    }

    .custom-modal.show {
        display: flex !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .custom-modal-backdrop {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 10001 !important;
        pointer-events: auto !important;
        cursor: pointer;
    }

    .custom-modal-dialog {
        position: relative !important;
        z-index: 10002 !important;
        max-width: 800px;
        width: 90%;
        max-height: 90vh;
        margin: auto;
        pointer-events: auto !important;
    }

    .custom-modal-content {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        color: #1e293b;
        display: flex;
        flex-direction: column;
        max-height: 90vh;
        pointer-events: auto !important;
    }

    .custom-modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1.5rem 2rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        pointer-events: auto !important;
    }

    .custom-modal-title {
        color: #1e293b;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        pointer-events: auto !important;
    }

    .custom-modal-close {
        background: transparent !important;
        border: none !important;
        color: #64748b !important;
        font-size: 1.5rem;
        cursor: pointer !important;
        padding: 0.5rem;
        opacity: 0.8;
        transition: opacity 0.2s;
        pointer-events: auto !important;
        z-index: 10003 !important;
        position: relative;
    }

    .custom-modal-close:hover {
        opacity: 1;
        color: #1e293b !important;
    }

    .custom-modal-body {
        padding: 1rem 2rem 2rem;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        pointer-events: auto !important;
    }

    .custom-modal-body h4 {
        color: #1e293b;
        font-size: 1.2rem;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .custom-modal-body h4:first-child {
        margin-top: 0;
    }

    .custom-modal-body p {
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .custom-modal-body ul {
        color: #64748b;
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .custom-modal-body li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

    .custom-modal-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1rem 2rem 1.5rem;
        display: flex;
        justify-content: flex-end;
        flex-shrink: 0;
        pointer-events: auto !important;
    }

    .custom-modal-footer .btn {
        pointer-events: auto !important;
        z-index: 10003 !important;
        position: relative;
    }

    .modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1.5rem 2rem 1rem;
    }

    .modal-title {
        color: #1e293b;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .btn-close {
        filter: none;
        opacity: 0.6;
    }

    .btn-close:hover {
        opacity: 1;
    }

    .modal-body {
        padding: 1rem 2rem 2rem;
        max-height: 60vh;
        overflow-y: auto;
    }

    .modal-body h4 {
        color: #1e293b;
        font-size: 1.2rem;
        font-weight: 600;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .modal-body h4:first-child {
        margin-top: 0;
    }

    .modal-body p {
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .modal-body ul {
        color: #64748b;
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-body li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

    .modal-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1rem 2rem 1.5rem;
    }

    .btn-secondary {
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        color: #1e293b;
        border-radius: 12px;
        padding: 8px 20px;
        font-weight: 600;
    }

    .btn-secondary:hover {
        background: #e2e8f0;
        border-color: #cbd5e1;
        color: #1e293b;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        .back-to-home {
            top: 20px;
            left: 20px;
            padding: 10px 20px;
            font-size: 13px;
        }

        .signup-card {
            margin: 1rem;
            padding: 2rem 1.5rem;
        }

        .signup-title {
            font-size: 1.75rem;
        }

        main.container {
            padding: 1rem !important;
        }
    }

.signup-content-stack {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-top-alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.signup-warning-alert {
    background: rgba(255, 193, 7, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
    border-radius: 12px;
    padding: 1.25rem;
}

.signup-warning-button {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #ffc107;
}

.signup-logo {
    height: 60px;
    width: auto;
}
