/* Reset y variables de diseño */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-color: #161616;
    --card-bg: rgba(32, 32, 32, 0.88);
    /* Tono Cobrizo brillante (Copper Gold Metallic) */
    --copper-accent: #d9822b;
    --copper-hover: #e08a30;
    --copper-glow: rgba(217, 130, 43, 0.45);
    --text-white: #ffffff;
    --text-muted: #a5a5a5;
    --input-bg: #121212;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Contenedor principal ajustado para viewport de móvil (Samsung Galaxy A31) */
.app-container {
    width: 100%;
    max-width: 412px;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 1.8rem 3rem 1.8rem;
    overflow: hidden;
}

/* Contenedor de la imagen de fondo */
.bg-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/* Capa superpuesta oscura para garantizar legibilidad */
.bg-illustration::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.72);
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Header & Logo */
.app-header {
    margin-bottom: 3.5rem;
}

/* Icono en tamaño 20x20px */
.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-name .highlight {
    color: var(--copper-accent);
    text-shadow: 0 0 12px var(--copper-glow);
}

/* Título de la sección */
.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-white);
}

/* Tarjeta contenedora de Inputs */
.input-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.input-group {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    position: relative;
}

.icon-box {
    width: 28px;
    height: 28px;
    background-color: var(--copper-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--copper-glow);
}

.icon-box i {
    color: #ffffff;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 0.95rem;
}

.input-group input::placeholder {
    color: #777;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0 1rem;
}

.eye-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Forgot Password */
.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
    margin-bottom: 3.5rem;
}

.forgot-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--copper-accent);
}

/* Botón de Login con destello metálico */
.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #e58e38 0%, #c47220 100%);
    color: #ffffff;
    border: none;
    border-radius: 26px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 6px 22px var(--copper-glow);
    transition: transform 0.15 ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-login:active {
    transform: scale(0.98);
    filter: brightness(1.1);
}