* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #000000;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 20px;
    text-align: center;
    position: relative;
}

.curved-box {
    position: absolute;
    background-color: rgba(30, 30, 30, 0.4);
    width: 85%;
    height: 75%; /* Increased height to accommodate the form */
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container {
    margin-bottom: 40px;
}

.logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%; /* Make it circular */
    overflow: hidden;
    background-color: white; /* White circle frame */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 50%; /* Ensure image inside is circular */
}

h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

p {
    font-size: 14px;
    color: #a7a7a7;
}

/* Login Form Styles */
.login-form {
    width: 80%;
    max-width: 300px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    border-color: #F0D04E;
}

/* Remember Me Checkbox Styles */
.remember-me-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #F0D04E;
    border-color: #F0D04E;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: none;
    background-color: #F0D04E;
    color: black;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.login-btn:hover {
    transform: scale(1.03);
    background-color: #f8dc60;
}

/* Error Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    width: 90%;
    max-width: 350px;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.error-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.error-popup-content {
    padding: 0;
}

.error-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 0, 0, 0.2);
    padding: 15px 20px;
}

.error-popup-header h3 {
    color: #ff5555;
    margin: 0;
    font-size: 18px;
}

.error-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.error-popup p {
    padding: 20px;
    margin: 0;
    color: white;
    font-size: 14px;
}

.arrow-down {
    position: absolute;
    bottom: 20px;
    color: #a7a7a7;
    font-size: 14px;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    /* Tablet view */
    .curved-box {
        width: 90%;
        height: 70%;
    }
    
    .logo-container {
        margin-bottom: 30px;
    }
    
    .login-form,
    .separator,
    .signin-button {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    /* Mobile view */
    .curved-box {
        width: 95%;
        height: 80%;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-square {
        width: 38px;
        height: 38px;
    }
    
    .logo-inner-square {
        width: 25px;
        height: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    p {
        font-size: 12px;
    }
    
    .form-group input,
    .login-btn,
    .signin-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .signin-button img {
        width: 20px;
        height: 20px;
    }
    
    .logo-container {
        margin-bottom: 25px;
    }
    
    .login-form,
    .separator,
    .signin-button {
        width: 95%;
    }
    
    .error-popup {
        width: 95%;
    }
    
    .error-popup-header h3 {
        font-size: 16px;
    }
    
    .error-popup p {
        padding: 15px;
        font-size: 13px;
    }
}

@media screen and (max-height: 600px) {
    /* For shorter screens like landscape mobile */
    .curved-box {
        height: 90%;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group input,
    .login-btn {
        padding: 10px;
    }
    
    .separator {
        margin: 10px 0;
    }
    
    .arrow-down {
        bottom: 10px;
    }
}
