* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f172a;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(251, 146, 60, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(234, 88, 12, 0.1) 0%, transparent 50%);
    z-index: -1;
}

nav {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(251, 146, 60, 0.3);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 16px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #ea580c);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fb923c;
}

.nav-links a:hover::after {
    width: calc(100% - 32px);
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(251, 146, 60, 0.3);
    width: 100%;
    max-width: 480px;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
}

.auth-header {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(234, 88, 12, 0.05) 100%);
    color: #fb923c;
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 24px 24px 0 0;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    opacity: 0.9;
    color: #cbd5e1;
}

.auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    margin: 20px 30px 0;
    padding: 4px;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    color: #cbd5e1;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab-btn.active {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.auth-form {
    padding: 40px 30px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.auth-form::-webkit-scrollbar {
    width: 8px;
}

.auth-form::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.auth-form::-webkit-scrollbar-thumb {
    background: rgba(251, 146, 60, 0.3);
    border-radius: 10px;
}

.auth-form::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 146, 60, 0.5);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(251, 146, 60, 0.3);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.7);
    font-family: inherit;
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.back-btn-form {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    color: #fb923c;
    border: 2px solid rgba(251, 146, 60, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.back-btn-form:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #fb923c;
}

.forgot-password {
    text-align: center;
    margin-top: 16px;
}

.forgot-password a {
    color: #fb923c;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.success-message, .error-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(251, 146, 60, 0.3);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 50px;
    width: auto;
    border-radius: 12px;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-text {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact {
    color: #fb923c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-contact:hover {
    color: #ea580c;
}

.footer-contact::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #ea580c);
    transition: width 0.3s ease;
}

.footer-contact:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 5px 15px rgba(251, 146, 60, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 14px;
    }

    .auth-container {
        max-width: 100%;
        margin: 0;
    }

    .auth-header {
        padding: 30px 20px 20px;
    }

    .auth-form {
        padding: 30px 20px;
        max-height: calc(100vh - 400px);
    }

    .auth-tabs {
        margin: 20px 20px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}