@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;600&display=swap');

body {
    font-family: 'Prompt', sans-serif;
    background-image: url('BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background: linear-gradient(135deg, #f9f9f9, #d9e7ff); */
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    color: yellow; 
    background: #666;
    text-align: center;
}

.subtitle {
    margin-bottom: 30px;
    font-size: 20px;
    color: black;
}

.form-group{
    text-align: left;
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

input{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box; 
}

input:focus{
    border-color: #004aad;
    box-shadow: 0 0 5px rgba(0, 74, 173, 0.12);
}

.password-group .password-wrapper {
    position:relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-wrapper button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #666;
}

.password-wrapper.show #eyeIcon,
.password-wrapper.show button {
    color: #004aad;
}

button {
    background-color: rgb(215, 215, 215);
}

button#loginbtn:hover {
    background: yellow;
}

.note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background-color: #666;
    color: yellow;
    padding: 20px;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: yellow;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-btn {
    background-color: #666;
    color: yellow;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Prompt', sans-serif;
}

.modal-btn:hover {
    background-color: #555;
    color: yellow;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

/* Loading Content Container */
.loading-content-new {
    text-align: center;
    min-width: 400px;
}

/* Progress Bar Container */
.super-long-bar {
    width: 85%;
    max-width: 600px;
    height: 12px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f5f5f5 100%);
    border: 2px solid;
    border-image: linear-gradient(90deg, #666, yellow) 1;
    border-radius: 20px;
    overflow: visible;
    position: relative;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.super-long-bar-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.loading-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #666 0%, #888 50%, yellow 100%);
    border-radius: 18px;
    animation: fill-progress-reset 0.3s linear forwards;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Rocket Icon */
.loading-rocket {
    position: absolute;
    top: -70px;
    left: 0%;
    width: 60px;
    height: 60px;
    animation: rocket-move 0.3s linear forwards;
    z-index: 999;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.8));
    user-select: none;
    pointer-events: none;
}

.loading-rocket img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fill-progress-reset {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes rocket-move {
    0% {
        left: 0%;
        transform: translateX(-50%) scale(1);
    }
    100% {
        left: 100%;
        transform: translateX(-50%) scale(1);
    }
}

.loading-text {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Internet Connection Overlay Styles */
.internet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.internet-content {
    background: rgba(102, 102, 102, 0.7);
    border-radius: 16px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    position: relative;
}

.internet-icon {
    color: #fff;
    margin-bottom: 25px;
    animation: pulse 2s ease-in-out infinite;
}

.internet-icon svg {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.internet-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 25px;
}

.internet-text {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}