/* VIBZ.LOL - Authentication Pages Styles */
:root {
    --accent: #5865f2;
    --accent-hover: #4a55d6;
    --accent-glow: rgba(88, 101, 242, 0.45);
    --accent-soft: rgba(88, 101, 242, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent);
    background-size: 200% 200%;
    animation: stars 20s ease-in-out infinite;
    opacity: 0.4;
    z-index: 0;
}

@keyframes stars {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: linear-gradient(145deg, rgba(19, 21, 40, 0.85), rgba(8, 9, 18, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-logo i {
    font-size: 2rem;
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #999);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group label i {
    color: var(--accent);
    font-size: 1rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-group input::placeholder {
    color: #666;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #fff;
}

.toggle-password i {
    font-size: 1.1rem;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
}

.strength-fill.weak {
    background: linear-gradient(90deg, #f44336, #e53935);
}

.strength-fill.fair {
    background: linear-gradient(90deg, #ff9800, #fb8c00);
}

.strength-fill.good {
    background: linear-gradient(90deg, #2196f3, #1976d2);
}

.strength-fill.strong {
    background: linear-gradient(90deg, #4caf50, #388e3c);
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
}

.password-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.requirement i {
    font-size: 0.7rem;
}

.requirement.met {
    color: #4caf50;
}

.requirement.met i {
    color: #4caf50;
    font-size: 0.9rem;
}

.error-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-group label {
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.checkbox-group label a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
}

.checkbox-group label a:hover {
    opacity: 0.8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* If the checkbox is removed, ensure the forgot link sits to the right */
.forgot-password {
    margin-left: auto;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.65);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Generic button styles used on verification notice */
.btn {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    box-shadow: 0 8px 30px var(--accent-glow);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: #999;
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-footer a:hover {
    opacity: 0.8;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(18, 23, 48, 0.8), rgba(7, 8, 18, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-features::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.4), transparent 70%);
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
}

.auth-features > * {
    position: relative;
    z-index: 1;
}

.auth-features h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(17, 21, 37, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(24, 29, 52, 0.85);
    border-color: rgba(88, 101, 242, 0.35);
    transform: translateX(5px);
}

.feature i {
    font-size: 2rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.12);
    border-radius: 1rem;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
}

.username-preview {
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: #101012;
    border-radius: 10px;
    height: 48px;
    font-size: 17px;
    color: #bfc1c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin: 12px 0 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.username-preview i {
    font-size: 19px;
    color: #bfc1c7;
    margin-right: 10px;
}

.username-preview span {
    font-weight: 500;
    color: #bfc1c7;
    margin-right: 4px;
}

.username-preview input[type="text"] {
    background: transparent;
    color: #f2f2fa;
    border: none;
    font-size: 17px;
    font-weight: 700;
    flex: 1;
    outline: none;
    padding: 0;
    margin-left: 2px;
}

.input-group label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    display: block;
    color: #d2d6dc;
}


/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-features {
        order: -1;
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-card h2 {
        font-size: 2rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .input-group input {
        padding: 0.9rem 1rem;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .feature i {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}
