* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #1e1f22;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

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

.login-box {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-header {
    padding: 20px;
    text-align: center;
    position: relative;
}

.login-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.form-container {
    padding: 30px 40px 40px;
    position: relative;
}

form {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group.invite-code {
    margin-top: 45px;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    color: #fff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -10px;
    font-size: 12px;
    color: rgb(114, 137, 218);
}

.input-group input:focus {
    border-bottom-color: rgb(114, 137, 218);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
}

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

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: rgb(114, 137, 218);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: rgb(103, 123, 196);
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: rgb(114, 137, 218);
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: rgb(103, 123, 196);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.form-footer a {
    color: rgb(114, 137, 218);
    text-decoration: none;
    margin-left: 5px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: rgb(103, 123, 196);
    text-decoration: underline;
}

.terms-group {
    margin-bottom: 20px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.terms-link {
    color: rgb(114, 137, 218);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: rgb(103, 123, 196);
}

/* Message Popup */
.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.message-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.message-content {
    background: #000;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(114, 137, 218, 0.1);
}

.message-text {
    font-size: 14px;
    color: #fff;
}

.message-content.error {
    border-color: rgba(237, 66, 69, 0.1);
}

.message-content.error .message-text {
    color: #ed4245;
}

.message-content.success {
    border-color: rgba(67, 181, 129, 0.1);
}

.message-content.success .message-text {
    color: #43b581;
}

.close-message {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: color 0.2s ease;
}

.close-message:hover {
    color: #fff;
}