/* ==========================================================================
   Word Cloud Generator — Auth Pages (Dark Creative Studio)
   ========================================================================== */

.wcg-auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.wcg-auth-page::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.wcg-auth-page::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.06) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.wcg-auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.wcg-auth-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px;
}

.wcg-auth-header {
    text-align: center;
    margin-bottom: 36px;
}
.wcg-auth-logo {
    display: inline-flex;
    margin-bottom: 28px;
}
.wcg-auth-header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.wcg-auth-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.wcg-auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.wcg-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.wcg-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.wcg-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wcg-form-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
.wcg-form-link:hover { opacity: 0.8; }

.wcg-auth-form input[type="text"],
.wcg-auth-form input[type="email"],
.wcg-auth-form input[type="password"],
.wcg-auth-form input[type="url"] {
    width: 100%;
    padding: 13px 16px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text);
    transition: all 0.25s var(--ease-out);
    outline: none;
    box-sizing: border-box;
}
.wcg-auth-form input[type="text"]:focus,
.wcg-auth-form input[type="email"]:focus,
.wcg-auth-form input[type="password"]:focus,
.wcg-auth-form input[type="url"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
    background-color: var(--bg-hover);
}
.wcg-auth-form input::placeholder { color: var(--text-muted); }

.wcg-password-field { position: relative; }
.wcg-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: color 0.2s;
}
.wcg-password-toggle:hover { color: var(--text-secondary); }

.wcg-password-strength { margin-top: 6px; }
.wcg-strength-bar {
    height: 4px;
    background-color: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}
.wcg-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}
.wcg-strength-fill.weak { background-color: #EF4444; }
.wcg-strength-fill.fair { background-color: #F59E0B; }
.wcg-strength-fill.good { background-color: #EAB308; }
.wcg-strength-fill.strong { background-color: #22C55E; }
.wcg-strength-fill.very-strong { background-color: #16A34A; }
.wcg-strength-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.wcg-form-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.wcg-form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.wcg-form-alert {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}
.wcg-alert-error {
    background-color: rgba(239,68,68,0.1);
    color: #F87171;
    border: 1px solid rgba(239,68,68,0.2);
}
.wcg-alert-success {
    background-color: rgba(34,197,94,0.1);
    color: #4ADE80;
    border: 1px solid rgba(34,197,94,0.2);
}
.wcg-alert-error a, .wcg-alert-success a { color: inherit; font-weight: 600; }

.wcg-auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.wcg-auth-footer p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.wcg-auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.wcg-auth-footer a:hover { opacity: 0.8; }

.wcg-btn-loading { display: inline-flex; align-items: center; }

@media (max-width: 480px) {
    .wcg-auth-card { padding: 28px 22px; }
}
