* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
    background: linear-gradient(135deg, #f7f5f2, #ece6dd);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#containerCodigo {
    width: 100%;
    max-width: 360px;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-bottom: 1.75rem;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 0.85rem;
    font-size: 1rem;
    border-radius: 0.7rem;
    border: 1px solid #ccc;
    outline: none;
}

.input-group input:focus {
    border-color: #a68b5b;
}

.input-group label {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.3rem;
    color: #888;
    pointer-events: none;
    transition: 0.2s ease;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -0.6rem;
    font-size: 0.75rem;
    color: #a68b5b;
}

button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 0.7rem;
    border: none;
    background: #a68b5b;
    color: white;
    cursor: pointer;
}

button:active {
    transform: scale(0.98);
}

#mensajeSnack {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1000;
}

#mensajeSnack.success {
    background-color: #4caf50;
}

#mensajeSnack.error {
    background-color: #f44336;
}
