* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    line-height: 1.6;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.auth-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    color: #667eea;
    font-size: 1.8rem;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-back:hover {
    background: #f1f5f9;
    color: #667eea;
}

/* New Header Styles */
header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.logo-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    text-decoration: none;
    padding: 0;
    font-family: inherit;
}

.nav-dropdown-btn:hover {
    color: #667eea;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1001;
    top: 100%;
    left: 0;
    margin-top: 0;
}

.nav-dropdown-content a {
    color: #333;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background-color: #f8f9ff;
    color: #667eea;
}

.dropdown-header {
    background: #667eea;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.dropdown-header:only-child {
    border-radius: 8px;
}

.simple-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.simple-nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.simple-nav-links a:hover {
    color: #667eea;
}

/* Footer Styles */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.brand-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.brand-links {
    display: flex;
    gap: 1rem;
}

.brand-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-link:hover {
    color: white;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-text {
    color: #9ca3af;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design for Header and Footer */
@media (max-width: 768px) {
    .nav-container {
        display: none;
    }
    
    .nav-dropdown-content {
        position: static !important;
        width: 100% !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-top: 0.25rem;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        max-width: none;
    }

    .brand-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-container {
        padding: 0 15px;
    }
}

@media (max-width: 1400px) and (min-width: 769px) {
    .nav-dropdown-content {
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-dropdown-content {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }
    
    .dropdown-header {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-dropdown-content a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 1rem;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
    }
}

/* Main Content */
.auth-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

.auth-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.auth-showcase {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.auth-showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.showcase-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-text p {
    opacity: 0.9;
    line-height: 1.5;
}

.testimonial {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.testimonial-content cite {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: normal;
}

/* Right Side - Forms */
.auth-right {
    background: white;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

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

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

.form-header h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-social:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateY(-1px);
}

.btn-social.google:hover { border-color: #ea4335; }
.btn-social.apple:hover { border-color: #000; }
.btn-social.facebook:hover { border-color: #1877f2; }
.btn-social.phone:hover { border-color: #10b981; }

.btn-social i {
    font-size: 1.1rem;
}

.btn-social.google i { color: #ea4335; }
.btn-social.apple i { color: #000; }
.btn-social.facebook i { color: #1877f2; }
.btn-social.phone i { color: #10b981; }

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    color: #64748b;
    padding: 0 1rem;
    font-size: 0.9rem;
    position: relative;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 0.5rem;
}

.country-select {
    width: 120px;
    flex-shrink: 0;
}

/* Username Input */
.username-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.username-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.url-prefix {
    padding: 0.875rem 0.5rem 0.875rem 0.875rem;
    color: #64748b;
    font-size: 1rem;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.username-input-container input {
    border: none;
    padding: 0.875rem 0.875rem 0.875rem 0.5rem;
    flex: 1;
}

.username-input-container input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

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

.username-feedback.available {
    color: #10b981;
}

.username-feedback.taken {
    color: #ef4444;
}

.username-feedback.checking {
    color: #64748b;
}

/* Username Suggestions */
.username-suggestions {
    margin: 1rem 0;
}

.username-suggestions p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-item {
    background: #f1f5f9;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.suggestion-item:hover {
    background: #667eea;
    color: white;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    gap: 0.5rem;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
}

.checkbox input:checked ~ .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Footer */
.form-footer {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-content {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-header {
        padding: 1rem;
    }
    
    .auth-right {
        padding: 1.5rem;
    }
    
    .auth-form-container {
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Success States */
.input-success {
    border-color: #10b981 !important;
}

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

/* Animation for form switching */
.auth-form.switching-out {
    animation: fadeOut 0.2s ease-in-out;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
} 