@import url('./common.css');

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    cursor: pointer;
}

.nav-logo i {
    color: #ff6b6b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-white);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0b0f19;
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    padding: 2rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.05);
}

.mobile-nav .btn-primary {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--background-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: #ff6b6b;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact i {
    color: #ff6b6b;
    font-size: 1rem;
}

.footer-contact a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #4ecdc4;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, var(--background-color) 0%, #1a1f2e 50%, var(--accent-color) 100%);
    color: var(--text-white);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

#login-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Auth badge above form */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff8c94;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.auth-badge i {
    font-size: 1rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), #ff8c94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 0.2rem 0;
    display: inline-block;
    width: 100%;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

#login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 35, 50, 0.9), rgba(40, 45, 60, 0.9));
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#login-form {
    width: 100%;
    margin-top: 2rem;
}

.label-span {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

#login-form input {
    display: block;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#login-form input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

#login-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#login-form button {
    margin-top: 2rem;
    border: none;
    outline: none;
    padding: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), #ff5252);
    border-radius: 12px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

#login-form button:hover {
    background: linear-gradient(135deg, #ff5252, var(--accent-color));
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

#login-form button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Link to signup */
.auth-link {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-link a:hover {
    color: #ff8c94;
    text-decoration: underline;
}

/* Benefits/Trust Indicators below form */
.auth-benefits {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.benefit-item i {
    color: #ff8c94;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }

    #login-content {
        padding: 80px 20px 40px;
    }

    #login-panel {
        padding: 2rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .auth-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
}