:root {
    --primary-purple: #8f00ff;
    --secondary-blue: #3b82f6;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.07);
    --btn-secondary-bg: rgba(255, 255, 255, 0.1);
    --btn-secondary-hover: rgba(255, 255, 255, 0.15);
    --text-light: #f3f4f6;
    --text-muted: #d1d5db;
    --pink: #ff2d95;
    --gold: #ffd700;
    --green: #00cc66;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
}

.logo {
    font-size: 1.8rem; 
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    position: relative;
}

.card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(143, 0, 255, 0.3);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-blue));
    background-size: 200% 100%;
    color: var(--text-light);
}

.btn-primary:hover {
    background-position: 100% 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
}

.btn-secondary i {
    font-size: 1.2rem;
}

.links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.links a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.terms {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.terms a {
    color: var(--text-muted);
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-blue);
}

.back-link i {
    margin-right: 0.5rem;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-wallet {
    background-color: var(--btn-secondary-bg);
    color: var(--text-light);
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}
.btn-wallet:hover {
    background-color: var(--btn-secondary-hover);
}
.btn-wallet img {
    width: 28px;
    height: 28px;
    margin-right: 1rem;
}

.qr-code-box {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    margin: 1rem auto 1.5rem auto;
    width: fit-content;
}
.qr-code-box img {
    display: block;
    width: 200px;
    height: 200px;
}

.password-requirements {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -0.5rem 0 1.5rem 0;
    padding-left: 0.5rem;
}
.password-requirements p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.password-requirements ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}
.password-requirements li {
    margin-bottom: 0.25rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}