* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.input-section {
    margin-bottom: 20px;
}

.secret-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.secret-input:focus {
    outline: none;
    border-color: #27ae60;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #27ae60;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-qrcode {
    background-color: #27ae60;
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-qrcode:hover {
    background-color: #229954;
}

.checkbox-section {
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.info-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.label {
    color: #666;
    font-size: 14px;
}

.value {
    color: #27ae60;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.token-large {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.btn-copy {
    margin-left: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-copy:active {
    transform: translateY(0);
}

.btn-copy.copied {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.qrcode-section {
    margin-top: 30px;
}

.qrcode-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.qrcode-container.hidden {
    display: none;
}

.qrcode-container img {
    max-width: 300px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    background-color: #fadbd8;
    border-radius: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    background-color: #d5f4e6;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .card {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }
}
