* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #272727;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.btn-select {
    width: 100px; 
    height: 100px; 
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px 0px #757575;
    border-radius: 5px;
    padding: 10px;
}

.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    height: fit-content;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a2e;
    font-size: 1.6rem;
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.campo input[type="email"],
.campo input[type="password"],
.campo input[type="text"],
.campo textarea,
.campo select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.campo textarea {
    resize: vertical;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}

/* Usuarios */
.usuario-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.usuario-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
}

.usuario-row input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.btn-eliminar {
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 38px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-eliminar:hover {
    background: #d9363e;
}

.btn-agregar {
    background: none;
    border: 1px dashed #4a6cf7;
    color: #4a6cf7;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-agregar:hover {
    background: rgba(74, 108, 247, 0.08);
}

/* Errores */
.error {
    color: #ff4d4f;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Botón enviar */
.btn-enviar {
    width: 100%;
    padding: 12px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-enviar:hover {
    background: #3a5bd9;
}

/* Mensaje */
.mensaje {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.mensaje.exito {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

.mensaje.error-msg {
    background: #fff2f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
}

.logo {
    display: block;
    margin: 0 auto 30px auto;
    width: 320px;
}

/* Header bar con usuario */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-bar .logo {
    margin: 0;
    width: 200px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.user-email {
    color: #666;
}

.btn-logout {
    color: #ff4d4f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid #ff4d4f;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #ff4d4f;
    color: #fff;
}