body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    text-align: center;
}

.container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 450px;
    width: 100%;
}

h1 {
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 2rem;
    color: #6c757d;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #0b5ed7;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

#status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

#status-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
}

#status-message.error {
    background-color: #f8d7da;
    color: #842029;
}

#token-container {
    margin-top: 2rem;
    text-align: left;
}

#token-container h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.token-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.token-display {
    display: flex;
    align-items: center;
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.token-display pre {
    flex-grow: 1;
    margin: 0;
    font-family: monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;       /* Permite que el texto se ajuste */
    word-break: break-all;       /* Rompe la palabra para evitar desbordamiento */
    color: #495057;
}

#copy-token-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 1rem;
    width: auto; /* Ancho automático para el botón */
    flex-shrink: 0; /* Evita que el botón se encoja */
}

#copy-token-button:hover {
    background-color: #5a6268;
}

.hidden {
    display: none;
}
