/* --- RESET Y VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #802F43; 
    --text-dark: #582231;
    --white: #ffffff;
    --gray-light: #f8f8f8;
}

body {
    background-color: var(--gray-light);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* --- CONTENEDOR MÓVIL (412 x 914) --- */
.mobile-container {
    width: 412px;
    height: 914px;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- BARRA SUPERIOR (RECOGER) --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.top-bar .pickup-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* --- NAVBAR PRINCIPAL --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background-color: var(--white);
    z-index: 101;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #93b9a2; 
    color: var(--white);
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- NUEVO CONTENEDOR LOGIN (VISTA CORREGIDA) --- */
.login-container {
    flex-grow: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    color: var(--text-dark);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--text-dark);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    background-color: var(--white);
}

.input-group input::placeholder {
    color: #999;
}

.forgot-password {
    text-align: center;
    margin-bottom: 10px;
}

.forgot-password a {
    color: var(--text-dark);
    font-size: 13px;
    text-decoration: underline;
}

/* --- BOTONES ESTILIZADOS --- */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1.5px solid var(--text-dark);
}

/* --- SECCIÓN SOCIAL --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 35px 0 20px 0;
    color: #888;
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 10px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--text-dark);
    color: var(--white);
    text-decoration: none;
}

/* --- FOOTER LEGAL --- */
.login-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: #666;
    font-size: 11px;
    text-decoration: none;
}