


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.auth-page-wrapper {
    
    min-height: 100vh;
    width: 100%;
    
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    
    
    background: radial-gradient(circle at top left, rgba(54, 109, 255, 0.15), transparent 50%),
                radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.1), transparent 50%),
                var(--bg-color);
    
    
    box-sizing: border-box;
    padding: 1rem;
}


.back-to-home {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
    font-weight: 500;
    z-index: 10;
}
.back-to-home:hover { color: var(--primary-color); }


.auth-card {
    background-color: rgba(26, 27, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px; 
    padding: 2.5rem;  
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
    
    margin: auto; 
}


.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8B5CF6);
}


.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--title-color); 
    margin-bottom: 0.5rem; 
    display: inline-block;
}
.auth-title { 
    font-size: 1.5rem; 
    color: var(--title-color); 
    font-weight: 700; 
    margin-bottom: 0.25rem; 
}
.auth-subtitle { color: var(--text-color); font-size: 0.9rem; }


.form-group { margin-bottom: 1rem; position: relative; }
.form-label { display: block; color: var(--text-color); font-size: 0.85rem; margin-bottom: 0.4rem; font-weight: 500; }

.input-wrapper { position: relative; }
.input-wrapper i {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-color); font-size: 1.1rem; pointer-events: none;
}
.password-toggle {
    position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-color); font-size: 1.1rem; cursor: pointer; pointer-events: auto;
}

.form-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--title-color);
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}
.form-input:focus { border-color: var(--primary-color); background-color: rgba(0, 0, 0, 0.5); }


.button-discord {
    width: 100%;
    background-color: #5865F2;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: none; cursor: pointer; transition: background-color 0.3s;
}
.button-discord:hover { background-color: #4B59E0; }

.auth-separator {
    display: flex; align-items: center; margin: 1.2rem 0;
    color: var(--text-color); font-size: 0.8rem; font-weight: 500;
}
.auth-separator::before, .auth-separator::after {
    content: ''; flex: 1; border-bottom: 1px solid var(--border-color);
}
.auth-separator:not(:empty)::before { margin-right: 1rem; }
.auth-separator:not(:empty)::after { margin-left: 1rem; }

.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; margin-bottom: 1.2rem; }
.remember-me { display: flex; align-items: center; gap: 0.4rem; color: var(--text-color); cursor: pointer; }
.forgot-password { color: var(--primary-color); }

.button-auth-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none; cursor: pointer; transition: all 0.3s;
}
.button-auth-submit:hover { background-color: #2e5bc4; transform: translateY(-2px); }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-color); }
.auth-footer a { color: var(--primary-color); font-weight: 600; }


@media screen and (max-width: 576px) {
    .auth-card { padding: 1.5rem; max-width: 100%; }
}