/* Reset básico de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Barra de navegación */
.apple-navbar {
    background-color: rgba(22, 22, 23, 0.8);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.nav-content {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 22px;
}

.apple-logo {
    color: #f5f5f7;
    font-size: 18px;
    cursor: pointer;
}

.nav-item {
    color: #f5f5f7;
    font-size: 12px;
    opacity: 0.8;
    cursor: pointer;
    display: none; /* Oculto en móviles para mantener simetría simple */
}

@media (min-width: 768px) {
    .nav-item { display: inline; }
}

/* Contenedor de Login */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px; /* Espacio para la navbar */
    padding-bottom: 60px;
}

.login-box {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    text-align: center;
}

.box-logo {
    width: 36px;
    height: 36px;
    margin-bottom: 24px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 32px;
    color: #1d1d1f;
}

/* Campos de entrada interactivos estilo Apple */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    height: 56px;
    padding: 18px 16px 6px 16px;
    font-size: 17px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* Animación del Label */
.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    font-size: 17px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 14px;
    font-size: 12px;
    color: #86868b;
}

/* Acciones del Formulario */
.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #424245;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Botón de envío redondo */
.submit-btn {
    background-color: #0071e3;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 30px;
}

.submit-btn:hover {
    background-color: #0077ed;
}

/* Links y Footer interno */
.apple-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.apple-link:hover {
    text-decoration: underline;
}

.create-id {
    margin-top: 16px;
    font-size: 14px;
    color: #6e6e73;
}

/* Pie de página global */
.apple-footer {
    background-color: #f5f5f7;
    color: #6e6e73;
    font-size: 12px;
    padding: 24px 0;
    width: 100%;
}

.footer-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links a {
    color: #424245;
    text-decoration: none;
    margin: 0 4px;
}

.footer-links a:hover {
    text-decoration: underline;
}
