/* Variables */
:root {
    --primary-color: #00ffcc;
    --primary-dark: #00bf99;
    --background-dark: #0d0d0d;
    --background-light: #1a1a1a;
    --text-color: #ffffff;
    --error-color: #ff4444;
    --success-color: #00C851;
    --warning-color: #ffbb33;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--background-dark), var(--background-light));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    line-height: 1.6;
}

/* Main container */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.form-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.1);
    backdrop-filter: blur(10px);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Tabs */
.tab-container {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Forms Wrapper */
.forms-wrapper {
    position: relative;
    min-height: 500px; /* Adjust based on form height */
}

/* Forms base styles */
form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(50px);
}

/* Active form */
.active-form {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Hidden form */
.hidden-form {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50px);
}

/* Input groups */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    left: 5px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.input-group input:focus ~ .highlight {
    width: 100%;
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Remember me and forgot password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Buttons */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.back-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Social login */
.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.social-btn.google {
    background: #db4437;
    color: white;
}

.social-btn.discord {
    background: #7289da;
    color: white;
}

/* Password strength meter */
.password-strength {
    margin-bottom: 20px;
}

.strength-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Terms */
.terms {
    margin-bottom: 20px;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Reset Form */
#resetForm {
    text-align: center;
}

#resetForm h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

#resetForm p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .form-container {
        padding: 20px;
    }

    .remember-forgot {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .social-buttons {
        flex-direction: column;
    }
}