/* Auth & Signup Pages */

.auth-page,
.signup-page,
.blocked-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    background: var(--primary);
    animation: float 15s infinite ease-in-out;
}

.auth-shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
}

.auth-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation-delay: -7s;
}

.auth-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    z-index: 100;
}

.auth-back:hover {
    background: rgba(42, 42, 42, 0.95);
    transform: translateX(-5px);
}

.auth-container,
.signup-container {
    width: 100%;
    max-width: 480px;
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

.signup-container {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-welcome {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(26, 26, 26, 0.5);
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.auth-tab {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.signup-step {
    display: none;
}

.signup-step.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
    padding: 1rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #666;
}

.input-help {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.input-feedback.error {
    color: #ef4444;
}

input.error {
    border-color: #ef4444 !important;
}

.btn-auth-primary {
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.btn-auth-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.step-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.step-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.step-footer a:hover {
    text-decoration: underline;
}

/* Signup Progress */
.signup-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.progress-step.completed .step-number {
    background: #4ade80;
    border-color: #4ade80;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.progress-step.active .step-label {
    color: white;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
    position: relative;
    top: -20px;
}

.signup-step {
    display: none;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--text-muted);
}

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.terms-box {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.terms-content {
    max-height: 200px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.terms-content ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn-signup-next,
.btn-signup-create {
    flex: 1;
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-signup-next:hover,
.btn-signup-create:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-signup-back {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-signup-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Blocked Page */
.blocked-container {
    text-align: center;
    max-width: 500px;
}

.blocked-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blocked-info {
    color: var(--text-secondary);
    margin: 1.5rem 0;
}

.blocked-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.blocked-contact a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-container {
        padding: 2rem;
    }
    
    .button-group {
        flex-direction: column-reverse;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .signup-step {
        padding: 1.5rem;
    }

    .progress-bar {
        margin-bottom: 1.5rem;
    }

    .btn-signup-back {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
