* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    height: 100%;
    width: 100%;
}

body {
    background: url('Image/BG.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0);
    z-index: 1000; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-txt {
    font-size: 40px;
    font-weight: bold;
    color: #ff8800;
}

.back-btn {
    background: transparent;
    padding: 10px 20px;
    border: 2px solid #ff8800;
    border-radius: 5px;
    color: #ff8800;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: fit-content;
    font-size: 18px;
}

.back-btn:hover {
    background: #ff8800;
    color: white;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.logo {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    width: 70%;
    max-width: 70%;
    height: auto;
    margin: 0;
}

.login-box {
    background: #2e2e2ead;
    padding: 30px 40px;
    border-radius: 20px;
    color: white;
    width: 55%;
    margin: auto;
    text-align: left;
}

.login-box::-webkit-scrollbar {
    width: 6px;
}

.login-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.login-box::-webkit-scrollbar-thumb {
    background: rgba(255, 136, 0, 0.6);
    border-radius: 10px;
}

h2 {
    color: #ff8800;
    text-align: center;
    font-size: 40px; 
}

.input-box {
    display: flex;
    align-items: center;
    background: #2e2e2ead;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid white;
    margin: 7% 0;
    width: 100%;
    position: relative; 
}

.input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 5px;
    font-size: 18px;
    width: calc(100% - 40px); 
}

.input-box input::placeholder {
    color: lightgray;
}

.input-box i:first-child {
    margin-right: 10px;
}

#togglePassword {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.login button{
    width: 100%;
    padding: 12px;
    background: #ff8800;
    border: none;
    color: #fefefe;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 6%;
    transition: all 0.3s ease-in-out;
}

.login button:hover {
    background: lightgray;
    color: #ff8800;
}

.register-acct {
    text-align: center; 
    font-size: 18px;
    margin-top: 6px; 
    margin-bottom: 2px;
}

.register-acct a {
    color: #ff8800; 
    text-decoration: none;
    font-weight: bold;
}

.register-acct a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 992px) {
    .login-box {
        width: 70%;
    }
}

@media screen and (max-width: 768px) {
    .login-box {
        width: 80%;
        padding: 25px 30px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    .logo img {
        width: 75%;
        max-width: 75%;
    }
}

@media screen and (max-width: 576px) {
    .header {
        padding: 10px 15px;
    }
    
    .logo-txt {
        font-size: 32px;
    }
    
    .back-btn {
        padding: 8px 15px;
        font-size: 16px;
    }
    
    .login-box {
        width: 90%;
        padding: 20px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .input-box {
        padding: 8px;
    }
    
    .input-box input {
        font-size: 16px;
    }
    
    #togglePassword {
        font-size: 16px;
    }
    
    .login button {
        padding: 10px;
        font-size: 18px;
    }
    
    .register-acct {
        font-size: 16px;
    }
    
    .logo img {
        width: 85%;
        max-width: 85%;
    }
}

@media screen and (max-width: 400px) {
    .logo-txt {
        font-size: 28px;
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .login-box {
        width: 100%;
        padding: 15px;
    }
    
    .register-acct {
        font-size: 14px;
    }
    
    .input-box input {
        font-size: 14px;
    }
    
    #togglePassword {
        font-size: 14px;
        right: 8px;
    }
    
    .logo img {
        width: 90%;
        max-width: 90%;
    }
}

        /* Forgot Password Styles */
        .forgot-pass {
            text-align: right;
            margin: 15px 0 20px 0;
        }

        .forgot-pass a {
            color: #ff8800;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .forgot-pass a:hover {
            color: #ffaa33;
            text-decoration: underline;
        }

        .forgot-pass a::before {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            bottom: -2px;
            left: 0;
            background-color: #ff8800;
            transition: width 0.3s ease;
        }

        .forgot-pass a:hover::before {
            width: 100%;
        }

        /* Modal Styles for Forgot Password */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: linear-gradient(135deg, #2e2e2e 0%, #3a3a3a 100%);
            margin: 10% auto;
            padding: 30px;
            border-radius: 15px;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 136, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #ff8800;
        }

        .modal h2 {
            color: #ff8800;
            text-align: center;
            margin-bottom: 20px;
            font-size: 28px;
        }

        .modal p {
            color: #ccc;
            text-align: center;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        .modal .input-box {
            margin: 20px 0;
        }

        .modal button {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #ff8800 0%, #ffaa33 100%);
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            border-radius: 8px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
        }

        .modal button:hover {
            background: linear-gradient(135deg, #ffaa33 0%, #ff8800 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4);
        }

        .modal button:active {
            transform: translateY(0);
        }

        /* Success/Error Messages */
        .message {
            padding: 12px;
            border-radius: 8px;
            margin: 15px 0;
            text-align: center;
            font-weight: 500;
        }

        .success {
            background: rgba(76, 175, 80, 0.2);
            color: #4CAF50;
            border: 1px solid #4CAF50;
        }

        .error {
            background: rgba(244, 67, 54, 0.2);
            color: #ff8800;;
            border: 1px solid #ff8800;
        }

        /* Loading State for Login Button */
        .login button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .login button:disabled:hover {
            background: #ff8800;
            color: #fefefe;
            transform: none;
        }

        /* Mobile Responsiveness */
        @media screen and (max-width: 576px) {
            .modal-content {
                margin: 20% auto;
                padding: 20px;
                width: 95%;
            }
            
            .modal h2 {
                font-size: 24px;
            }
            
            .forgot-pass a {
                font-size: 13px;
            }
        }

        .popup {
            display: none;
            position: fixed;
            z-index: 9999;
            inset: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.35);
            backdrop-filter: blur(4px);
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        .popup p {
            color: #ac4d00; /* deep red text */
            background-color: #e0e0e0;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 5px;
            line-height: 1.4;
            text-align: center;
            background-color: #e8e8e8; /* dark background */
            font-size: 13px;
            font-weight: bold;
            line-height: 1.5;
            text-align: center;
            padding: 10px 15px;
            border-radius: 8px;
            display: inline-block;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.4),
                        0 2px 6px rgba(0,0,0,0.25);
        }


        .popup-content {
            position: relative;
            background: #ebeaea;
            padding: 25px 30px;
            border-radius: 12px;
            max-width: 380px;
            width: 90%;
            text-align: center;
            animation: zoomIn 0.35s ease; /* big to small effect */

            /* 3D shadow */
            box-shadow:
                0 4px 6px rgba(0, 0, 0, 0.1),
                0 8px 12px rgba(0, 0, 0, 0.08),
                0 16px 24px rgba(0, 0, 0, 0.06),
                0 24px 32px rgba(0, 0, 0, 0.05);
        }


        .popup-divider {
            margin: 18px 0;
            border: none;
            height: 1px;
            background: linear-gradient(to right, #ff8800); 
        }

        .ok-btn {
            margin-top: 0px;
            width: 200px;
            padding: 10px 20px;
            background: linear-gradient(135deg, #ff8800); 
            color: #ffffff;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
            transition: transform 0.2s ease, opacity 0.3s ease;
        }

        .ok-btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            background: linear-gradient(135deg, #b85600); 
            color: #ffffff;
        }

        .popup-icon {
            font-size: 42px;
            color:  #ff8800; 
            margin-bottom: 5px;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from { transform: translateY(40px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes zoomIn {
            0%   { transform: scale(1.3); opacity: 0; }
            60%  { transform: scale(0.95); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }

        .popup-icon i {
            font-size: 50px;
            color:  #ff8800;
            margin-bottom: 5px;
            animation: spin360 1.5s linear infinite;
        }

        @keyframes spin360 {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        