.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.back-arrow {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    z-index: 10;
}

.back-arrow:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
    transform: translateX(-3px);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon-badge {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus ~ .input-icon {
    color: var(--brand-primary);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.secondary-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--text-tertiary);
    background: var(--bg-surface);
}

@media (max-width: 600px) {
    .auth-container {
        padding: 32px 24px;
        border-radius: 20px;
    }
    .back-arrow { top: 20px; left: 20px; }
    .auth-header h1 { font-size: 1.5rem; }
    .auth-icon-badge { width: 56px; height: 56px; font-size: 1.5rem; }
}

@media (max-width: 400px) {
    .auth-container { padding: 24px 20px; }
    .auth-header { margin-bottom: 24px; }
    .auth-header h1 { font-size: 1.35rem; }
    .input-group { margin-bottom: 20px; }
    .submit-btn { padding: 12px; }
    .auth-icon-badge { width: 52px; height: 52px; font-size: 1.35rem; }
}

@media (max-width: 350px) {
    .auth-page { padding: 12px; }
    .back-arrow {
        width: 36px; height: 36px;
        top: 12px; left: 12px;
        font-size: 0.9rem;
    }
    .auth-container { padding: 20px 16px; margin-top: 40px; }
    .auth-icon-badge { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 12px; }
    .auth-header h1 { font-size: 1.2rem; }
    .auth-header p { font-size: 0.85rem; }

    .input-group label { font-size: 0.85rem; margin-bottom: 6px; }
    .input-wrapper input { padding: 10px 12px 10px 36px; font-size: 0.9rem; }
    .input-icon { left: 10px; font-size: 1rem; }

    .submit-btn { padding: 10px; font-size: 0.9rem; }
    .secondary-btn { padding: 10px; font-size: 0.9rem; }
}

@media (max-width: 280px) {
    .auth-container { padding: 16px 12px; border-radius: 16px; }
    .input-group { margin-bottom: 16px; }
    .input-wrapper input { font-size: 0.8rem; border-radius: 8px; }
    .auth-header h1 { font-size: 1.1rem; }
    .auth-icon-badge { width: 44px; height: 44px; font-size: 1.1rem; }
}

@media (max-width: 220px) {
    body { font-size: 12px; }
    .back-arrow { display: none; }
    .auth-container { margin-top: 0; padding: 10px 8px; border: none; background: transparent; box-shadow: none; }
    .auth-header h1 { font-size: 1rem; }
    .input-wrapper input { padding-left: 30px; }
    .input-icon { left: 8px; font-size: 0.9rem; }
}
