* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Fondo degradado suave estilo iOS */
.ios-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #4A90E2, #50E3C2, #9013FE, #FF0844);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    filter: blur(80px);
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
}

/* Contenedor efecto cristal */
.login-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    text-align: center;
}

.avatar-container {
    width: 80px;
    height: 80px;
    background: #e5e5ea;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: #8e8e93;
    margin-bottom: 30px;
}

/* Campos de texto combinados */
.input-group {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 1px;
    position: relative;
}

.input-group:first-of-type {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.input-group:last-of-type {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 25px;
}

input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 16px;
    color: #1c1c1e;
    outline: none;
}

input::placeholder {
    color: #8e8e93;
}

.input-group:first-of-type::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 0;
    height: 1px;
    background: rgba(60, 60, 67, 0.18);
}

/* Botón estilo iOS */
.ios-btn {
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ios-btn:active {
    background-color: #0056b3;
}

.error-msg {
    color: #ff3b30;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}
