/* Remove neomorphic variables and use project variables */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Atkinson Hyperlegible Mono', 'Roboto Mono', sans-serif, monospace;
    background: var(--light-bg);
    color: var(--text-color);
}

.visually-hidden {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    white-space: nowrap;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    max-width: 90vw;
}

.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 4px;
    background: var(--light-bg);
    padding: 4px;
    border-radius: 8px;
}

.tabs button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-weight: 500;
    font-family: 'Atkinson Hyperlegible Mono', 'Roboto Mono', sans-serif, monospace;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: var(--tertiary-color);
    font-size: 0.9rem;
}

.tabs button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tabs button[aria-selected="true"] {
    background: white;
    color: var(--tertiary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabs button[aria-selected="false"] {
    border: none;
    box-shadow: none;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid var(--dark-bg);
    background: #f8f9fa;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

input:focus {
    border-color: #6c63ff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.btn {
    width: 100%;
    margin: 1.5rem 0 0;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--tertiary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    color: var(--tertiary-color);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--tertiary-color);
    transform: translateY(-1px);
}

/* Guest button style */
.guest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
}

.guest-btn:hover {
    background: var(--dark-bg);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.guest-indicator {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f5c6cb;
}

.or {
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    position: relative;
}

.or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.3;
}

.or span {
    background: white;
    padding: 0 16px;
    position: relative;
}

.socials {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: white;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--tertiary-color);
}

.social:hover {
    background: var(--tertiary-color);
    color: white;
    border-color: var(--tertiary-color);
    transform: translateY(-1px);
}

/* Landing page specific styles */
.auth-landing {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--light-bg);
}

.auth-landing .container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--secondary-color);
}

.auth-box {
    padding: 2rem;
}

.auth-info {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.auth-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-info ul {
    list-style: none;
    padding: 0;
}

.auth-info li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.auth-info li i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Messages */
.messages {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 1rem;
}

.message {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

form {
    display: none;
}

.form.active {
    display: block;
}

@media (max-width: 768px) {
    .auth-landing .container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .auth-info {
        display: none;
    }

    .auth-fullscreen {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        background: var(--light-bg);
        overflow-y: auto;
        transition: all 0.3s ease;
        padding: 0 !important;
        margin: 0 !important;
        border: none;
        border-radius: 0;
    }

    .auth-fullscreen .auth-container {
        max-width: 100vw;
        min-height: 100vh;
        padding: 30px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-fullscreen .back-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        background: white;
        border-radius: 8px;
        border: 2px solid var(--secondary-color);
        color: var(--tertiary-color);
        font-size: 1.2rem;
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .auth-fullscreen .back-btn:hover {
        background: var(--tertiary-color);
        color: white;
    }

    .container {
        width: 100%;
        max-width: 360px;
    }
}