:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --font-family: 'Inter', sans-serif;
    --spacing-md: 1.5rem;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: var(--card-background);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.brand-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1.5rem;
}

.brand-image {
    width: 90%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 1.5rem;
    gap: 1rem;
}

.brand-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.4rem;
    background: linear-gradient(45deg, #e7bd15, #544403);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: visible;
}

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

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

.input-group input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: var(--text-primary);
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #9ca3af;
}

button {
    cursor: pointer;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    padding: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:active {
    transform: scale(0.98);
}

.action-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-top: 0.5rem;
}

.action-btn:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

.action-btn.secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
    margin-top: 1rem;
    width: 100%;
}


.primary-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
}

.desktop-message {
    display: none;
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Animations */
.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    
}

/* Input with attached button */
.input-with-button {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.input-with-button input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    margin: 0;
    z-index: 1;
    min-width: 0;
    box-sizing: border-box;
}

.input-with-button input:focus {
    z-index: 2;
}

.append-btn {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 0 1rem;
    font-weight: 600;
    white-space: nowrap;
}


.append-btn:hover {
    background-color: var(--primary-hover);
}

/* Ensure no horizontal scroll */
body {
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .mobile-container {
        display: none;
    }

    .desktop-message {
        display: flex;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #172441;
    /* dark slate */
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #1e293b;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item .icon {
    font-size: 20px;
}

.nav-item.active {
    color: #38bdf8;
}

.nav-item.logout {
    color: #f87171;
}

.nav-item:active {
    transform: scale(0.95);
}