/*-------------------------------------------Background Image---------------------------------------------*/
#bg {
    width: 100%;
    height: 118vh;

}



/*-------------------------------------------Loading Modal Design---------------------------------------------*/
.loading-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.spinner-border-gold {
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #FFD700;
    animation: spin 1s linear infinite, pulse-glow 2s ease-in-out infinite;
}

.loading-text h5 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 18px;
}

.loading-text p {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
        transform: scale(1.05);
    }
}

/* Form button improvements */
.form-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-btn:active {
    transform: scale(0.95);
}

/*-------------------------------------------Error Modal Design---------------------------------------------*/
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.error-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
    border: 3px solid #dc3545;
}

.error-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.error-icon {
    font-size: 24px;
    margin-right: 12px;
    animation: shake 0.5s ease-in-out;
}

.error-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error-body {
    padding: 25px;
    text-align: center;
}

.error-content {
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.error-footer {
    padding: 20px 25px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.retry-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.retry-btn:active {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive design for error modal */
@media (max-width: 576px) {
    .error-modal {
        width: 95%;
        margin: 20px;
    }
    
    .error-header {
        padding: 15px;
    }
    
    .error-header h3 {
        font-size: 16px;
    }
    
    .error-body {
        padding: 20px;
    }
    
    .error-content {
        font-size: 14px;
    }
    
    .retry-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}


/*-------------------------------------------Redirect Button---------------------------------------------*/
.form-btn img
{
    width: 70%;
    animation: pulse 0.9s infinite linear;
}

.form-btn
{
        background-color: transparent !important;
    border: none;
}


/*-------------------------------------------Keyframe Animation---------------------------------------------*/
@keyframes pulse {
    0% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(0.9);
    }
}



/*-------------------------------------------Multi Device Screen Size---------------------------------------------*/
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #bg {
        height: 100vh;
    }
}


/* Registration Form Styling */
.registration-wrapper {
    max-width: 340px;
    margin: 0 auto;
    padding: 18px 15px;
    background: rgba(139, 0, 0, 0.95);
    border: 4px solid #FFD700;
    border-radius: 25px;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.5),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 4px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    display: block;
}

.btn-submit {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    border: 3px solid #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 900;
    color: #8B0000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
    transition: all 0.3s;
}

/* Specific form container used in index.html */
.bg-form {
    margin: 6% auto 0 auto;
    padding: 18px 18px;
    background: linear-gradient(180deg, rgba(139,0,0,0.98) 0%, rgba(115,0,0,0.98) 100%);
    border: 6px solid #FFD700;
    border-radius: 18px;
    box-shadow:
        0 12px 30px rgba(0,0,0,0.6),
        inset 0 0 40px rgba(0,0,0,0.35);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.form-input {
    width: 86%;
    border-radius: 999px !important; /* pill */
    padding: 5px 18px !important;
    background: #ffffff !important;
    border: 0; /* remove gold border on inputs to match image */
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    text-align: center;
    font-weight: 600;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none !important;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.18), 0 6px 20px rgba(0,0,0,0.5) !important;
}

.submit-btn {
    margin: 12px auto 0 auto;
    display: inline-block;
    width: 72%;
    background: linear-gradient(180deg, #FFD700, #FFA500);
    border: 4px solid #fff;
    border-radius: 999px;
    padding: 12px 10px;
    color: #8B0000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,0.45);
    line-height: 1.05;
}

.submit-btn:active {
    transform: translateY(2px);
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .bg-form { max-width: 92%; padding: 14px; }
    .form-input { width: 92%; }
    .submit-btn { width: 88%; }
}


.form-container
{
    top: 42%;
}
