* {
    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%;
    }
}