* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;

    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 12px 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 500px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.navbar.scrolled {
    top: 15px;
    width: 400px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 32px;
    transition: all 0.3s ease;
}
.navbar.scrolled .nav-container {
    padding: 0 10px;
    padding-left: 20px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.favicon {
    height: 28px;
    width: 28px;
    transition: all 0.3s ease;
}
.logo-text {
    font-weight: 600;
    font-size: 18px;
    color: black;
    transition: all 0.3s ease;
}
.navbar.scrolled .favicon {
    height: 24px;
    width: 24px;
}
.navbar.scrolled .logo-text {
    font-size: 16px;
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    transition: all 0.3s ease;
}
.navbar.scrolled .nav-links {
    gap: 20px;
}
.nav-links a {
    color: #424245;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.navbar.scrolled .nav-links a {
    font-size: 14px;
}
.nav-links a:hover {
    color: black;
}
.navbar.scrolled .nav-links a.download-nav-btn {
    background: linear-gradient(135deg, #1e3a8a, #000000);
    color: #fff;
    padding: 6px 10px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}
.navbar.scrolled .nav-links a.download-nav-btn:hover {
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
    color: #fff;
}
.auth-container {
    max-width: 480px;
    width: 100%;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.auth-container.visible {
    opacity: 1;
}
.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.auth-card.shake {
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: black;
    text-align: center;
}
.auth-subtitle {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 5px;
    text-align: center;
}
.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.04);
    padding: 6px;
    border-radius: 12px;
}
.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #6e6e73;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.auth-tab.active {
    background: white;
    color: black;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.portal-form {
    display: none;
}
.portal-form.active {
    display: block;
}
.form-group {
    padding: 15px;
    margin-bottom: 3px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #1e3a8a;
    background: white;
}
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3a8a, #000000);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
    margin-top: 12px;
}
.submit-btn:hover {
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
    transform: translateY(-2px);
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.submit-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
}
.message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.message.show {
    opacity: 1;
    transform: translateY(0);
}
.message.hidden {
    display: none;
}
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
@media (max-width: 768px) {
    .navbar {
        width: calc(100vw - 40px);
    }
    .nav-container {
        padding: 0 20px;
    }
    .navbar.scrolled .nav-container {
        padding: 0 16px;
    }
    .nav-links {
        gap: 16px;
    }
    .navbar.scrolled .nav-links {
        gap: 12px;
    }
    .auth-card {
        padding: 32px 24px;
    }
    .auth-title {
        font-size: 2rem;
    }
}